Class MonsterRoomFeature

java.lang.Object
net.minecraft.world.level.levelgen.feature.Feature<NoneFeatureConfiguration>
net.minecraft.world.level.levelgen.feature.MonsterRoomFeature

public class MonsterRoomFeature extends Feature<NoneFeatureConfiguration>
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • MOBS

      private static final EntityType<?>[] MOBS
    • AIR

      private static final BlockState AIR
  • Constructor Details

  • Method Details

    • place

      public boolean place(FeaturePlaceContext<NoneFeatureConfiguration> pContext)
      Places the given feature at the given location. During world generation, features are provided with a 3x3 region of chunks, centered on the chunk being generated, that they can safely generate into.
      Specified by:
      place in class Feature<NoneFeatureConfiguration>
      Parameters:
      pContext - A context object with a reference to the level and the position the feature is being placed at
    • randomEntityId

      private EntityType<?> randomEntityId(RandomSource pRandom)