Class SimpleEntityRenameFix

java.lang.Object
com.mojang.datafixers.DataFix
net.minecraft.util.datafix.fixes.EntityRenameFix
net.minecraft.util.datafix.fixes.SimpleEntityRenameFix
Direct Known Subclasses:
EntityCatSplitFix, EntityElderGuardianSplitFix, EntitySkeletonSplitFix

public abstract class SimpleEntityRenameFix extends EntityRenameFix
  • Field Summary

    Fields inherited from class net.minecraft.util.datafix.fixes.EntityRenameFix

    name
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    protected com.mojang.datafixers.util.Pair<String,com.mojang.datafixers.Typed<?>>
    fix(String pEntityName, com.mojang.datafixers.Typed<?> pTyped)
     
    protected abstract com.mojang.datafixers.util.Pair<String,com.mojang.serialization.Dynamic<?>>
    getNewNameAndTag(String pName, com.mojang.serialization.Dynamic<?> pTag)
     

    Methods inherited from class net.minecraft.util.datafix.fixes.EntityRenameFix

    makeRule

    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
  • Constructor Details

    • SimpleEntityRenameFix

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

    • fix

      protected com.mojang.datafixers.util.Pair<String,com.mojang.datafixers.Typed<?>> fix(String pEntityName, com.mojang.datafixers.Typed<?> pTyped)
      Specified by:
      fix in class EntityRenameFix
    • getNewNameAndTag

      protected abstract com.mojang.datafixers.util.Pair<String,com.mojang.serialization.Dynamic<?>> getNewNameAndTag(String pName, com.mojang.serialization.Dynamic<?> pTag)