Class BedrockDimension

java.lang.Object
org.geysermc.geyser.level.BedrockDimension

public class BedrockDimension extends Object
A data structure to represent what Bedrock believes are the height requirements for a specific dimension. As of 1.18.30, biome count is representative of the height of the world, and out-of-bounds chunks can crash the client.
  • Field Details

  • Constructor Details

    • BedrockDimension

      public BedrockDimension(int minY, int height, boolean doUpperHeightWarn, int bedrockId)
      Parameters:
      minY - The minimum height Bedrock Edition will accept.
      height - The maximum chunk height Bedrock Edition will accept, from the lowest point to the highest.
      doUpperHeightWarn - whether to warn in the console if the Java dimension height exceeds Bedrock's.
      bedrockId - the Bedrock dimension ID of this dimension.
  • Method Details

    • changeBedrockNetherId

      public static void changeBedrockNetherId(boolean isAboveNetherBedrockBuilding)
      The Nether dimension in Bedrock does not permit building above Y128 - the Bedrock above the dimension. This workaround sets the Nether as the End dimension to ignore this limit.
      Parameters:
      isAboveNetherBedrockBuilding - true if we should apply The End workaround
    • isCustomBedrockNetherId

      public static boolean isCustomBedrockNetherId()
    • maxY

      public int maxY()
    • minY

      public int minY()
    • height

      public int height()
    • doUpperHeightWarn

      public boolean doUpperHeightWarn()
    • bedrockId

      public int bedrockId()
    • toString

      public String toString()
      Overrides:
      toString in class Object