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
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
-
-
-
-
Method Detail
-
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_)
-
-