package net.minecraft.util.datafix.schemas;

import com.mojang.datafixers.DSL;
import com.mojang.datafixers.schemas.Schema;
import com.mojang.datafixers.types.templates.TypeTemplate;
import java.util.Map;
import java.util.function.Supplier;
import net.minecraft.util.datafix.fixes.References;

public class V3325 extends NamespacedSchema {
   public V3325(int p_270387_, Schema p_270374_) {
      super(p_270387_, p_270374_);
   }

   public Map<String, Supplier<TypeTemplate>> registerEntities(Schema p_270629_) {
      Map<String, Supplier<TypeTemplate>> map = super.registerEntities(p_270629_);
      p_270629_.register(map, "minecraft:item_display", (p_270589_) -> {
         return DSL.optionalFields("item", References.ITEM_STACK.in(p_270629_));
      });
      p_270629_.register(map, "minecraft:block_display", (p_270174_) -> {
         return DSL.optionalFields("block_state", References.BLOCK_STATE.in(p_270629_));
      });
      p_270629_.registerSimple(map, "minecraft:text_display");
      return map;
   }
}