Package net.minecraft.util.datafix.fixes
Class VillagerRebuildLevelAndXpFix
java.lang.Object
com.mojang.datafixers.DataFix
net.minecraft.util.datafix.fixes.VillagerRebuildLevelAndXpFix
public class VillagerRebuildLevelAndXpFix
extends com.mojang.datafixers.DataFix
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final int[]private static final int
- 
Constructor SummaryConstructorsConstructorDescriptionVillagerRebuildLevelAndXpFix(com.mojang.datafixers.schemas.Schema p_17077_, boolean p_17078_) 
- 
Method SummaryModifier and TypeMethodDescriptionprivate static com.mojang.datafixers.Typed<?>addLevel(com.mojang.datafixers.Typed<?> p_17100_, int p_17101_) private static com.mojang.datafixers.Typed<?>addXpFromLevel(com.mojang.datafixers.Typed<?> p_17109_, int p_17110_) static intgetMinXpPerLevel(int p_17080_) com.mojang.datafixers.TypeRewriteRulemakeRule()Methods inherited from class com.mojang.datafixers.DataFixchecked, convertUnchecked, fixTypeEverywhere, fixTypeEverywhere, fixTypeEverywhere, fixTypeEverywhere, fixTypeEverywhereTyped, fixTypeEverywhereTyped, fixTypeEverywhereTyped, fixTypeEverywhereTyped, getInputSchema, getOutputSchema, getRule, getVersionKey, onFail, writeAndRead, writeFixAndRead
- 
Field Details- 
TRADES_PER_LEVELprivate static final int TRADES_PER_LEVEL- See Also:
 
- 
LEVEL_XP_THRESHOLDSprivate static final int[] LEVEL_XP_THRESHOLDS
 
- 
- 
Constructor Details- 
VillagerRebuildLevelAndXpFixpublic VillagerRebuildLevelAndXpFix(com.mojang.datafixers.schemas.Schema p_17077_, boolean p_17078_) 
 
- 
- 
Method Details- 
getMinXpPerLevelpublic static int getMinXpPerLevel(int p_17080_) 
- 
makeRulepublic com.mojang.datafixers.TypeRewriteRule makeRule()- Specified by:
- makeRulein class- com.mojang.datafixers.DataFix
 
- 
addLevelprivate static com.mojang.datafixers.Typed<?> addLevel(com.mojang.datafixers.Typed<?> p_17100_, int p_17101_) 
- 
addXpFromLevelprivate static com.mojang.datafixers.Typed<?> addXpFromLevel(com.mojang.datafixers.Typed<?> p_17109_, int p_17110_) 
 
-