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 V135 extends Schema { public V135(int p_17404_, Schema p_17405_) { super(p_17404_, p_17405_); } @Override public void registerTypes(Schema p_17411_, Map> p_17412_, Map> p_17413_) { super.registerTypes(p_17411_, p_17412_, p_17413_); p_17411_.registerType( false, References.PLAYER, () -> DSL.optionalFields( "RootVehicle", DSL.optionalFields("Entity", References.ENTITY_TREE.in(p_17411_)), "ender_pearls", DSL.list(References.ENTITY_TREE.in(p_17411_)), "Inventory", DSL.list(References.ITEM_STACK.in(p_17411_)), "EnderItems", DSL.list(References.ITEM_STACK.in(p_17411_)) ) ); p_17411_.registerType( true, References.ENTITY_TREE, () -> DSL.optionalFields("Passengers", DSL.list(References.ENTITY_TREE.in(p_17411_)), References.ENTITY.in(p_17411_)) ); } }