Package org.geysermc.geyser.level
Class BedrockDimension
java.lang.Object
org.geysermc.geyser.level.BedrockDimension
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 Summary
FieldsModifier and TypeFieldDescriptionstatic intstatic final intstatic final intstatic final Stringstatic final BedrockDimensionstatic final intstatic final BedrockDimensionstatic final BedrockDimension -
Constructor Summary
ConstructorsConstructorDescriptionBedrockDimension(int minY, int height, boolean doUpperHeightWarn, int bedrockId) -
Method Summary
Modifier and TypeMethodDescriptionintstatic voidchangeBedrockNetherId(boolean isAboveNetherBedrockBuilding) The Nether dimension in Bedrock does not permit building above Y128 - the Bedrock above the dimension.booleanintheight()static booleanintmaxY()intminY()toString()
-
Field Details
-
OVERWORLD_ID
public static final int OVERWORLD_ID- See Also:
-
DEFAULT_NETHER_ID
public static final int DEFAULT_NETHER_ID- See Also:
-
END_ID
public static final int END_ID- See Also:
-
BEDROCK_NETHER_ID
public static int BEDROCK_NETHER_ID -
OVERWORLD
-
THE_NETHER
-
THE_END
-
NETHER_IDENTIFIER
- See Also:
-
-
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
-