Package net.minecraft.world.gen.feature
Class FeatureSpread
- java.lang.Object
-
- net.minecraft.world.gen.feature.FeatureSpread
-
public class FeatureSpread extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private int
baseValue
static com.mojang.serialization.Codec<FeatureSpread>
CODEC
private int
spread
-
Constructor Summary
Constructors Modifier Constructor Description private
FeatureSpread(int p_i241900_1_, int p_i241900_2_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static com.mojang.serialization.Codec<FeatureSpread>
codec(int p_242254_0_, int p_242254_1_, int p_242254_2_)
boolean
equals(java.lang.Object p_equals_1_)
static FeatureSpread
fixed(int p_242252_0_)
int
hashCode()
static FeatureSpread
of(int p_242253_0_, int p_242253_1_)
int
sample(java.util.Random p_242259_1_)
java.lang.String
toString()
-
-
-
Field Detail
-
CODEC
public static final com.mojang.serialization.Codec<FeatureSpread> CODEC
-
baseValue
private final int baseValue
-
spread
private final int spread
-
-
Method Detail
-
codec
public static com.mojang.serialization.Codec<FeatureSpread> codec(int p_242254_0_, int p_242254_1_, int p_242254_2_)
-
fixed
public static FeatureSpread fixed(int p_242252_0_)
-
of
public static FeatureSpread of(int p_242253_0_, int p_242253_1_)
-
sample
public int sample(java.util.Random p_242259_1_)
-
equals
public boolean equals(java.lang.Object p_equals_1_)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-