Package org.geysermc.geyser.level
Record Class BedrockDimension
java.lang.Object
java.lang.Record
org.geysermc.geyser.level.BedrockDimension
- Record Components:
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.
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 BedrockDimensionstatic BedrockDimensionstatic BedrockDimension -
Constructor Summary
ConstructorsConstructorDescriptionBedrockDimension(int minY, int height, boolean doUpperHeightWarn)Creates an instance of aBedrockDimensionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thedoUpperHeightWarnrecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.intheight()Returns the value of theheightrecord component.intminY()Returns the value of theminYrecord component.toString()Returns a string representation of this record class.
-
Field Details
-
OVERWORLD
-
THE_NETHER
-
THE_END
-
-
Constructor Details
-
BedrockDimension
public BedrockDimension(int minY, int height, boolean doUpperHeightWarn)Creates an instance of aBedrockDimensionrecord class.- Parameters:
minY- the value for theminYrecord componentheight- the value for theheightrecord componentdoUpperHeightWarn- the value for thedoUpperHeightWarnrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with '=='. -
minY
public int minY()Returns the value of theminYrecord component.- Returns:
- the value of the
minYrecord component
-
height
public int height()Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-
doUpperHeightWarn
public boolean doUpperHeightWarn()Returns the value of thedoUpperHeightWarnrecord component.- Returns:
- the value of the
doUpperHeightWarnrecord component
-