Class EntityRenameFix

java.lang.Object
com.mojang.datafixers.DataFix
net.minecraft.util.datafix.fixes.EntityRenameFix
Direct Known Subclasses:
EntityHorseSplitFix, EntityMinecartIdentifiersFix, EntityZombieSplitFix, SimpleEntityRenameFix

public abstract class EntityRenameFix extends com.mojang.datafixers.DataFix
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    EntityRenameFix(String pName, com.mojang.datafixers.schemas.Schema pOutputSchema, boolean pChangesType)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract com.mojang.datafixers.util.Pair<String,com.mojang.datafixers.Typed<?>>
    fix(String pEntityName, com.mojang.datafixers.Typed<?> pTyped)
     
    private <A> com.mojang.datafixers.Typed<A>
    getEntity(Object pValue, com.mojang.serialization.DynamicOps<?> pOps, com.mojang.datafixers.types.Type<A> pType)
     
    com.mojang.datafixers.TypeRewriteRule
     

    Methods inherited from class com.mojang.datafixers.DataFix

    checked, convertUnchecked, fixTypeEverywhere, fixTypeEverywhere, fixTypeEverywhere, fixTypeEverywhere, fixTypeEverywhereTyped, fixTypeEverywhereTyped, fixTypeEverywhereTyped, fixTypeEverywhereTyped, getInputSchema, getOutputSchema, getRule, getVersionKey, onFail, writeAndRead, writeFixAndRead

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • name

      protected final String name
  • Constructor Details

    • EntityRenameFix

      public EntityRenameFix(String pName, com.mojang.datafixers.schemas.Schema pOutputSchema, boolean pChangesType)
  • Method Details

    • makeRule

      public com.mojang.datafixers.TypeRewriteRule makeRule()
      Specified by:
      makeRule in class com.mojang.datafixers.DataFix
    • getEntity

      private <A> com.mojang.datafixers.Typed<A> getEntity(Object pValue, com.mojang.serialization.DynamicOps<?> pOps, com.mojang.datafixers.types.Type<A> pType)
    • fix

      protected abstract com.mojang.datafixers.util.Pair<String,com.mojang.datafixers.Typed<?>> fix(String pEntityName, com.mojang.datafixers.Typed<?> pTyped)