Record Class EndPodiumFeature
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.feature.EndPodiumFeature
- All Implemented Interfaces:
Feature
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanThe field for theactiverecord component.static final com.mojang.serialization.MapCodec<EndPodiumFeature> static final floatstatic final intstatic final intstatic final intFields inherited from interface Feature
DIRECT_CODEC, LIST_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionEndPodiumFeature(boolean active) Creates an instance of aEndPodiumFeaturerecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanactive()Returns the value of theactiverecord component.com.mojang.serialization.MapCodec<EndPodiumFeature> codec()private voiddropPreviousAndSetBlock(WorldGenLevel level, BlockPos pos, Block block) 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
-
active
private final boolean activeThe field for theactiverecord component. -
PODIUM_RADIUS
public static final int PODIUM_RADIUS- See Also:
-
PODIUM_PILLAR_HEIGHT
public static final int PODIUM_PILLAR_HEIGHT- See Also:
-
RIM_RADIUS
public static final int RIM_RADIUS- See Also:
-
CORNER_ROUNDING
public static final float CORNER_ROUNDING- See Also:
-
CODEC
-
-
Constructor Details
-
EndPodiumFeature
public EndPodiumFeature(boolean active) Creates an instance of aEndPodiumFeaturerecord class.- Parameters:
active- the value for theactiverecord component
-
-
Method Details
-
codec
-
place
public boolean place(WorldGenLevel level, ChunkGenerator chunkGenerator, RandomSource random, BlockPos origin) -
dropPreviousAndSetBlock
-
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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
active
public boolean active()Returns the value of theactiverecord component.- Returns:
- the value of the
activerecord component
-