Record Class EndPlatformFeature
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.feature.EndPlatformFeature
- All Implemented Interfaces:
Feature
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<EndPlatformFeature> Fields inherited from interface Feature
DIRECT_CODEC, LIST_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aEndPlatformFeaturerecord class. -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.MapCodec<EndPlatformFeature> codec()static voidcreateEndPlatform(ServerLevelAccessor newLevel, BlockPos origin, boolean dropResources) 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
-
CODEC
-
-
Constructor Details
-
EndPlatformFeature
public EndPlatformFeature()Creates an instance of aEndPlatformFeaturerecord class.
-
-
Method Details
-
codec
-
place
public boolean place(WorldGenLevel level, ChunkGenerator chunkGenerator, RandomSource random, BlockPos origin) -
createEndPlatform
public static void createEndPlatform(ServerLevelAccessor newLevel, BlockPos origin, boolean dropResources) -
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.
-