Class VoidStartPlatformFeature

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

public class VoidStartPlatformFeature extends Feature<NoneFeatureConfiguration>
  • Field Details

    • PLATFORM_OFFSET

      private static final BlockPos PLATFORM_OFFSET
    • PLATFORM_ORIGIN_CHUNK

      private static final ChunkPos 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:
  • Constructor Details

    • VoidStartPlatformFeature

      public VoidStartPlatformFeature(com.mojang.serialization.Codec<NoneFeatureConfiguration> p_67354_)
  • Method Details

    • checkerboardDistance

      private static int checkerboardDistance(int pFirstX, int pFirstZ, int pSecondX, int pSecondZ)
      Returns the Manhattan distance between the two points.
    • 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