Class VillagerLevelAndXpFix


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

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

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

      All Methods Static Methods Instance Methods Concrete Methods 
      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 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 Detail

      • LEVEL_XP_THRESHOLDS

        private static final int[] LEVEL_XP_THRESHOLDS
    • Constructor Detail

      • VillagerLevelAndXpFix

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

      • 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_)