Class EntityAttributeBaseValueFix

java.lang.Object
com.mojang.datafixers.DataFix
net.minecraft.util.datafix.fixes.NamedEntityFix
net.minecraft.util.datafix.fixes.EntityAttributeBaseValueFix

public class EntityAttributeBaseValueFix extends NamedEntityFix
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final String
     
    private final DoubleUnaryOperator
     

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

    entityName, type
  • Constructor Summary

    Constructors
    Constructor
    Description
    EntityAttributeBaseValueFix(com.mojang.datafixers.schemas.Schema pOutputSchema, String pName, String pEntityName, String pAttributeId, DoubleUnaryOperator pValueFixer)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected com.mojang.datafixers.Typed<?>
    fix(com.mojang.datafixers.Typed<?> p_390650_)
     
    private com.mojang.serialization.Dynamic<?>
    fixValue(com.mojang.serialization.Dynamic<?> pTag)
     

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

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

  • Constructor Details

    • EntityAttributeBaseValueFix

      public EntityAttributeBaseValueFix(com.mojang.datafixers.schemas.Schema pOutputSchema, String pName, String pEntityName, String pAttributeId, DoubleUnaryOperator pValueFixer)
  • Method Details

    • fix

      protected com.mojang.datafixers.Typed<?> fix(com.mojang.datafixers.Typed<?> p_390650_)
      Specified by:
      fix in class NamedEntityFix
    • fixValue

      private com.mojang.serialization.Dynamic<?> fixValue(com.mojang.serialization.Dynamic<?> pTag)