Record Class VoidStartPlatformFeature
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.feature.VoidStartPlatformFeature
- All Implemented Interfaces:
Feature
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<VoidStartPlatformFeature> private static final BlockPosprivate static final ChunkPosprivate static final intprivate static final intFields inherited from interface Feature
DIRECT_CODEC, LIST_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aVoidStartPlatformFeaturerecord class. -
Method Summary
Modifier and TypeMethodDescriptionprivate static intcheckerboardDistance(int xa, int za, int xb, int zb) com.mojang.serialization.MapCodec<VoidStartPlatformFeature> codec()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanplace(WorldGenLevel level, ChunkGenerator chunkGenerator, RandomSource random, BlockPos origin) final StringtoString()Returns a string representation of this record class.Methods inherited from interface Feature
getSubFeatures, markAboveForPostProcessing, safeSetBlock, setBlock
-
Field Details
-
PLATFORM_OFFSET
-
PLATFORM_ORIGIN_CHUNK
-
PLATFORM_RADIUS
private static final int PLATFORM_RADIUS- See Also:
-
PLATFORM_RADIUS_CHUNKS
private static final int PLATFORM_RADIUS_CHUNKS- See Also:
-
CODEC
-
-
Constructor Details
-
VoidStartPlatformFeature
public VoidStartPlatformFeature()Creates an instance of aVoidStartPlatformFeaturerecord class.
-
-
Method Details
-
codec
-
checkerboardDistance
private static int checkerboardDistance(int xa, int za, int xb, int zb) -
place
public boolean place(WorldGenLevel level, ChunkGenerator chunkGenerator, RandomSource random, BlockPos origin) -
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.
-