Class VillagerLevelAndXpFix

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

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

    Fields
    Modifier and Type
    Field
    Description
    private static final int[]
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    VillagerLevelAndXpFix(com.mojang.datafixers.schemas.Schema p_i51508_1_, boolean p_i51508_2_)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private static com.mojang.datafixers.Typed<?>
    addLevel(com.mojang.datafixers.Typed<?> p_223003_0_, int p_223003_1_)
     
    private static com.mojang.datafixers.Typed<?>
    addXpFromLevel(com.mojang.datafixers.Typed<?> p_222994_0_, int p_222994_1_)
     
    static int
    getMinXpPerLevel(int p_223001_0_)
     
    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

    • LEVEL_XP_THRESHOLDS

      private static final int[] LEVEL_XP_THRESHOLDS
  • Constructor Details

    • VillagerLevelAndXpFix

      public VillagerLevelAndXpFix(com.mojang.datafixers.schemas.Schema p_i51508_1_, boolean p_i51508_2_)
  • Method Details

    • getMinXpPerLevel

      public static int getMinXpPerLevel(int p_223001_0_)
    • makeRule

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

      private static com.mojang.datafixers.Typed<?> addLevel(com.mojang.datafixers.Typed<?> p_223003_0_, int p_223003_1_)
    • addXpFromLevel

      private static com.mojang.datafixers.Typed<?> addXpFromLevel(com.mojang.datafixers.Typed<?> p_222994_0_, int p_222994_1_)