Record Class MonsterRoomFeature
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.feature.MonsterRoomFeature
- All Implemented Interfaces:
Feature
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final BlockStatestatic final com.mojang.serialization.MapCodec<MonsterRoomFeature> private static final org.slf4j.Loggerprivate static final EntityType<?>[]Fields inherited from interface Feature
DIRECT_CODEC, LIST_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aMonsterRoomFeaturerecord class. -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.MapCodec<MonsterRoomFeature> 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) private EntityType<?> randomEntityId(RandomSource random) final StringtoString()Returns a string representation of this record class.Methods inherited from interface Feature
getSubFeatures, markAboveForPostProcessing, safeSetBlock, setBlock
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
MOBS
-
AIR
-
CODEC
-
-
Constructor Details
-
MonsterRoomFeature
public MonsterRoomFeature()Creates an instance of aMonsterRoomFeaturerecord class.
-
-
Method Details
-
codec
-
place
public boolean place(WorldGenLevel level, ChunkGenerator chunkGenerator, RandomSource random, BlockPos origin) -
randomEntityId
-
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.
-