Record Class EndIslandFunction
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.densityfunction.generator.EndIslandFunction
- All Implemented Interfaces:
DensityFunction
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface DensityFunction
DensityFunction.Axes, DensityFunction.CompileContext -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<EndIslandFunction> private static final floatFields inherited from interface DensityFunction
ALL_AXES, AXIS_X, AXIS_Y, AXIS_Z, NO_AXES, REFERENCE_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aEndIslandFunctionrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.MapCodec<EndIslandFunction> codec()intfinal booleanIndicates whether some other object is "equal to" this one.private static floatgetHeightValue(SimplexNoise islandNoise, int sectionX, int sectionZ) final inthashCode()Returns a hash code value for this object.range()rewriteChildren(DfRewriteRule rule) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CODEC
-
ISLAND_THRESHOLD
private static final float ISLAND_THRESHOLD- See Also:
-
-
Constructor Details
-
EndIslandFunction
public EndIslandFunction()Creates an instance of aEndIslandFunctionrecord class.
-
-
Method Details
-
getHeightValue
-
compileSampler
- Specified by:
compileSamplerin interfaceDensityFunction
-
range
- Specified by:
rangein interfaceDensityFunction
-
domainAxes
public int domainAxes()- Specified by:
domainAxesin interfaceDensityFunction
-
codec
- Specified by:
codecin interfaceDensityFunction
-
rewriteChildren
- Specified by:
rewriteChildrenin interfaceDensityFunction
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal.
-