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
- Mappings:
Namespace Name official awp
intermediary net/minecraft/class_4300
named net/minecraft/datafixer/fix/VillagerXpRebuildFix
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private static final int[]
-
Constructor Summary
ConstructorDescriptionVillagerXpRebuildFix
(com.mojang.datafixers.schemas.Schema schema, boolean bool) -
Method Summary
Modifier and TypeMethodDescriptionprivate static com.mojang.datafixers.Typed<?>
fixLevel
(com.mojang.datafixers.Typed<?> typed, int int2) private static com.mojang.datafixers.Typed<?>
fixXp
(com.mojang.datafixers.Typed<?> typed, int int2) static int
levelToXp
(int level) 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
-
field_29914
private static final int field_29914- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lawp;a:I
intermediary field_29914
Lnet/minecraft/class_4300;field_29914:I
named field_29914
Lnet/minecraft/datafixer/fix/VillagerXpRebuildFix;field_29914:I
-
LEVEL_TO_XP
private static final int[] LEVEL_TO_XP- Mappings:
Namespace Name Mixin selector official b
Lawp;b:[I
intermediary field_19285
Lnet/minecraft/class_4300;field_19285:[I
named LEVEL_TO_XP
Lnet/minecraft/datafixer/fix/VillagerXpRebuildFix;LEVEL_TO_XP:[I
-
-
Constructor Details
-
VillagerXpRebuildFix
public VillagerXpRebuildFix(com.mojang.datafixers.schemas.Schema schema, boolean bool)
-
-
Method Details
-
levelToXp
public static int levelToXp(int level) - Mappings:
Namespace Name Mixin selector official a
Lawp;a(I)I
intermediary method_20482
Lnet/minecraft/class_4300;method_20482(I)I
named levelToXp
Lnet/minecraft/datafixer/fix/VillagerXpRebuildFix;levelToXp(I)I
-
makeRule
public com.mojang.datafixers.TypeRewriteRule makeRule()- Specified by:
makeRule
in classcom.mojang.datafixers.DataFix
-
fixLevel
private static com.mojang.datafixers.Typed<?> fixLevel(com.mojang.datafixers.Typed<?> typed, int int2) - Mappings:
Namespace Name Mixin selector official a
Lawp;a(Lcom/mojang/datafixers/Typed;I)Lcom/mojang/datafixers/Typed;
intermediary method_20487
Lnet/minecraft/class_4300;method_20487(Lcom/mojang/datafixers/Typed;I)Lcom/mojang/datafixers/Typed;
named fixLevel
Lnet/minecraft/datafixer/fix/VillagerXpRebuildFix;fixLevel(Lcom/mojang/datafixers/Typed;I)Lcom/mojang/datafixers/Typed;
-
fixXp
private static com.mojang.datafixers.Typed<?> fixXp(com.mojang.datafixers.Typed<?> typed, int int2) - Mappings:
Namespace Name Mixin selector official b
Lawp;b(Lcom/mojang/datafixers/Typed;I)Lcom/mojang/datafixers/Typed;
intermediary method_20490
Lnet/minecraft/class_4300;method_20490(Lcom/mojang/datafixers/Typed;I)Lcom/mojang/datafixers/Typed;
named fixXp
Lnet/minecraft/datafixer/fix/VillagerXpRebuildFix;fixXp(Lcom/mojang/datafixers/Typed;I)Lcom/mojang/datafixers/Typed;
-