Package net.minecraft.datafixer.fix
Class VillagerXpRebuildFix
java.lang.Object
com.mojang.datafixers.DataFix
net.minecraft.datafixer.fix.VillagerXpRebuildFix
public class VillagerXpRebuildFix
extends com.mojang.datafixers.DataFix
-
Field Summary
Fields Modifier and Type Field Description private static int[]
LEVEL_TO_XP
-
Constructor Summary
Constructors Constructor Description VillagerXpRebuildFix(com.mojang.datafixers.schemas.Schema outputSchema, boolean changesType)
-
Method Summary
Modifier and Type Method Description static int
levelToXp(int level)
com.mojang.datafixers.TypeRewriteRule
makeRule()
private static com.mojang.datafixers.Typed<?>
method_20487(com.mojang.datafixers.Typed<?> typed, int int2)
private static com.mojang.datafixers.Typed<?>
method_20490(com.mojang.datafixers.Typed<?> typed, int int2)
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_TO_XP
private static final int[] LEVEL_TO_XP
-
-
Constructor Details
-
VillagerXpRebuildFix
public VillagerXpRebuildFix(com.mojang.datafixers.schemas.Schema outputSchema, boolean changesType)
-
-
Method Details
-
levelToXp
public static int levelToXp(int level) -
makeRule
public com.mojang.datafixers.TypeRewriteRule makeRule()- Specified by:
makeRule
in classcom.mojang.datafixers.DataFix
-
method_20487
private static com.mojang.datafixers.Typed<?> method_20487(com.mojang.datafixers.Typed<?> typed, int int2) -
method_20490
private static com.mojang.datafixers.Typed<?> method_20490(com.mojang.datafixers.Typed<?> typed, int int2)
-