Package net.minecraft.util.datafix.fixes
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
-
Constructor Summary
ConstructorDescriptionVillagerLevelAndXpFix
(com.mojang.datafixers.schemas.Schema p_i51508_1_, boolean p_i51508_2_) -
Method Summary
Modifier and TypeMethodDescriptionprivate 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
-
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 classcom.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_)
-