public class DimensionUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
NETHER
String reference to vanilla Java nether dimension identifier
|
static String |
OVERWORLD
String reference to vanilla Java overworld dimension identifier
|
static String |
THE_END
String reference to vanilla Java end dimension identifier
|
| Constructor and Description |
|---|
DimensionUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
changeBedrockNetherId(boolean isAboveNetherBedrockBuilding)
The Nether dimension in Bedrock does not permit building above Y128 - the Bedrock above the dimension.
|
static String |
getNewDimension(com.github.steveice10.opennbt.tag.builtin.CompoundTag dimensionTag)
Determines the new dimension based on the
CompoundTag sent by either the ServerJoinGamePacket
or ServerRespawnPacket. |
static int |
javaToBedrock(String javaDimension)
Map the Java edition dimension IDs to Bedrock edition
|
static void |
switchDimension(GeyserSession session,
String javaDimension) |
public static final String OVERWORLD
public static final String NETHER
public static final String THE_END
public static void switchDimension(GeyserSession session, String javaDimension)
public static int javaToBedrock(String javaDimension)
javaDimension - Dimension ID to convertpublic static String getNewDimension(com.github.steveice10.opennbt.tag.builtin.CompoundTag dimensionTag)
CompoundTag sent by either the ServerJoinGamePacket
or ServerRespawnPacket.dimensionTag - the packet's dimension tag.public static void changeBedrockNetherId(boolean isAboveNetherBedrockBuilding)
isAboveNetherBedrockBuilding - true if we should apply The End workaroundCopyright © 2020 GeyserMC. All rights reserved.