Class DropChancesFormatFix

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

public class DropChancesFormatFix extends com.mojang.datafixers.DataFix
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final List<String>
     
    private static final float
     
    private static final List<String>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    DropChancesFormatFix(com.mojang.datafixers.schemas.Schema p_393639_)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private static com.mojang.serialization.Dynamic<?>
    addSlotChances(com.mojang.serialization.Dynamic<?> p_394421_, List<Float> p_393513_, List<String> p_393814_)
     
    protected com.mojang.datafixers.TypeRewriteRule
     
    private static List<Float>
    parseDropChances(com.mojang.serialization.OptionalDynamic<?> p_394100_)
     

    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

    • ARMOR_SLOT_NAMES

      private static final List<String> ARMOR_SLOT_NAMES
    • HAND_SLOT_NAMES

      private static final List<String> HAND_SLOT_NAMES
    • DEFAULT_CHANCE

      private static final float DEFAULT_CHANCE
      See Also:
  • Constructor Details

    • DropChancesFormatFix

      public DropChancesFormatFix(com.mojang.datafixers.schemas.Schema p_393639_)
  • Method Details

    • makeRule

      protected com.mojang.datafixers.TypeRewriteRule makeRule()
      Specified by:
      makeRule in class com.mojang.datafixers.DataFix
    • addSlotChances

      private static com.mojang.serialization.Dynamic<?> addSlotChances(com.mojang.serialization.Dynamic<?> p_394421_, List<Float> p_393513_, List<String> p_393814_)
    • parseDropChances

      private static List<Float> parseDropChances(com.mojang.serialization.OptionalDynamic<?> p_394100_)