public class ChanceRangeConfig extends java.lang.Object implements IPlacementConfig
Modifier and Type | Field and Description |
---|---|
int |
bottomOffset |
float |
chance |
int |
top |
int |
topOffset |
NO_PLACEMENT_CONFIG
Constructor and Description |
---|
ChanceRangeConfig(float chance,
int bottomOffset,
int topOffset,
int top) |
Modifier and Type | Method and Description |
---|---|
static ChanceRangeConfig |
deserialize(com.mojang.datafixers.Dynamic<?> p_214732_0_) |
<T> com.mojang.datafixers.Dynamic<T> |
serialize(com.mojang.datafixers.types.DynamicOps<T> ops) |
public final float chance
public final int bottomOffset
public final int topOffset
public final int top
public ChanceRangeConfig(float chance, int bottomOffset, int topOffset, int top)
public <T> com.mojang.datafixers.Dynamic<T> serialize(com.mojang.datafixers.types.DynamicOps<T> ops)
serialize
in interface IPlacementConfig
public static ChanceRangeConfig deserialize(com.mojang.datafixers.Dynamic<?> p_214732_0_)