Package net.minecraft.datafixer.fix
Class EntityZombieVillagerTypeFix
java.lang.Object
com.mojang.datafixers.DataFix
net.minecraft.datafixer.fix.ChoiceFix
net.minecraft.datafixer.fix.EntityZombieVillagerTypeFix
public class EntityZombieVillagerTypeFix extends ChoiceFix
-
Field Summary
-
Constructor Summary
Constructors Constructor Description EntityZombieVillagerTypeFix(com.mojang.datafixers.schemas.Schema outputSchema, boolean changesType)
-
Method Summary
Modifier and Type Method Description private int
clampType(int type)
com.mojang.serialization.Dynamic<?>
fixZombieType(com.mojang.serialization.Dynamic<?> dynamic)
protected com.mojang.datafixers.Typed<?>
transform(com.mojang.datafixers.Typed<?> inputType)
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
-
RANDOM
-
-
Constructor Details
-
EntityZombieVillagerTypeFix
public EntityZombieVillagerTypeFix(com.mojang.datafixers.schemas.Schema outputSchema, boolean changesType)
-
-
Method Details
-
fixZombieType
public com.mojang.serialization.Dynamic<?> fixZombieType(com.mojang.serialization.Dynamic<?> dynamic) -
clampType
private int clampType(int type) -
transform
protected com.mojang.datafixers.Typed<?> transform(com.mojang.datafixers.Typed<?> inputType)
-