Package net.minestom.server.registry
Record Class Registry.DimensionTypeEntry
java.lang.Object
java.lang.Record
net.minestom.server.registry.Registry.DimensionTypeEntry
- All Implemented Interfaces:
Registry.Entry
- Enclosing class:
Registry
public static record Registry.DimensionTypeEntry(NamespaceID namespace, boolean ultrawarm, boolean natural, double coordinateScale, boolean hasSkylight, boolean hasCeiling, float ambientLight, Long fixedTime, boolean piglinSafe, boolean bedWorks, boolean respawnAnchorWorks, boolean hasRaids, int logicalHeight, int minY, int height, String infiniburn, String effects, Registry.Properties custom)
extends Record
implements Registry.Entry
-
Constructor Summary
ConstructorDescriptionDimensionTypeEntry
(String namespace, Registry.Properties main, Registry.Properties custom) DimensionTypeEntry
(NamespaceID namespace, boolean ultrawarm, boolean natural, double coordinateScale, boolean hasSkylight, boolean hasCeiling, float ambientLight, Long fixedTime, boolean piglinSafe, boolean bedWorks, boolean respawnAnchorWorks, boolean hasRaids, int logicalHeight, int minY, int height, String infiniburn, String effects, Registry.Properties custom) Creates an instance of aDimensionTypeEntry
record class. -
Method Summary
Modifier and TypeMethodDescriptionfloat
Returns the value of theambientLight
record component.boolean
bedWorks()
Returns the value of thebedWorks
record component.double
Returns the value of thecoordinateScale
record component.custom()
Returns the value of thecustom
record component.effects()
Returns the value of theeffects
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of thefixedTime
record component.boolean
Returns the value of thehasCeiling
record component.final int
hashCode()
Returns a hash code value for this object.boolean
hasRaids()
Returns the value of thehasRaids
record component.boolean
Returns the value of thehasSkylight
record component.int
height()
Returns the value of theheight
record component.Returns the value of theinfiniburn
record component.int
Returns the value of thelogicalHeight
record component.int
minY()
Returns the value of theminY
record component.Returns the value of thenamespace
record component.boolean
natural()
Returns the value of thenatural
record component.boolean
Returns the value of thepiglinSafe
record component.boolean
Returns the value of therespawnAnchorWorks
record component.final String
toString()
Returns a string representation of this record class.boolean
Returns the value of theultrawarm
record component.
-
Constructor Details
-
DimensionTypeEntry
-
DimensionTypeEntry
public DimensionTypeEntry(NamespaceID namespace, boolean ultrawarm, boolean natural, double coordinateScale, boolean hasSkylight, boolean hasCeiling, float ambientLight, Long fixedTime, boolean piglinSafe, boolean bedWorks, boolean respawnAnchorWorks, boolean hasRaids, int logicalHeight, int minY, int height, String infiniburn, String effects, Registry.Properties custom) Creates an instance of aDimensionTypeEntry
record class.- Parameters:
namespace
- the value for thenamespace
record componentultrawarm
- the value for theultrawarm
record componentnatural
- the value for thenatural
record componentcoordinateScale
- the value for thecoordinateScale
record componenthasSkylight
- the value for thehasSkylight
record componenthasCeiling
- the value for thehasCeiling
record componentambientLight
- the value for theambientLight
record componentfixedTime
- the value for thefixedTime
record componentpiglinSafe
- the value for thepiglinSafe
record componentbedWorks
- the value for thebedWorks
record componentrespawnAnchorWorks
- the value for therespawnAnchorWorks
record componenthasRaids
- the value for thehasRaids
record componentlogicalHeight
- the value for thelogicalHeight
record componentminY
- the value for theminY
record componentheight
- the value for theheight
record componentinfiniburn
- the value for theinfiniburn
record componenteffects
- the value for theeffects
record componentcustom
- the value for thecustom
record 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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
namespace
Returns the value of thenamespace
record component.- Returns:
- the value of the
namespace
record component
-
ultrawarm
public boolean ultrawarm()Returns the value of theultrawarm
record component.- Returns:
- the value of the
ultrawarm
record component
-
natural
public boolean natural()Returns the value of thenatural
record component.- Returns:
- the value of the
natural
record component
-
coordinateScale
public double coordinateScale()Returns the value of thecoordinateScale
record component.- Returns:
- the value of the
coordinateScale
record component
-
hasSkylight
public boolean hasSkylight()Returns the value of thehasSkylight
record component.- Returns:
- the value of the
hasSkylight
record component
-
hasCeiling
public boolean hasCeiling()Returns the value of thehasCeiling
record component.- Returns:
- the value of the
hasCeiling
record component
-
ambientLight
public float ambientLight()Returns the value of theambientLight
record component.- Returns:
- the value of the
ambientLight
record component
-
fixedTime
Returns the value of thefixedTime
record component.- Returns:
- the value of the
fixedTime
record component
-
piglinSafe
public boolean piglinSafe()Returns the value of thepiglinSafe
record component.- Returns:
- the value of the
piglinSafe
record component
-
bedWorks
public boolean bedWorks()Returns the value of thebedWorks
record component.- Returns:
- the value of the
bedWorks
record component
-
respawnAnchorWorks
public boolean respawnAnchorWorks()Returns the value of therespawnAnchorWorks
record component.- Returns:
- the value of the
respawnAnchorWorks
record component
-
hasRaids
public boolean hasRaids()Returns the value of thehasRaids
record component.- Returns:
- the value of the
hasRaids
record component
-
logicalHeight
public int logicalHeight()Returns the value of thelogicalHeight
record component.- Returns:
- the value of the
logicalHeight
record component
-
minY
public int minY()Returns the value of theminY
record component.- Returns:
- the value of the
minY
record component
-
height
public int height()Returns the value of theheight
record component.- Returns:
- the value of the
height
record component
-
infiniburn
Returns the value of theinfiniburn
record component.- Returns:
- the value of the
infiniburn
record component
-
effects
Returns the value of theeffects
record component.- Returns:
- the value of the
effects
record component
-
custom
Returns the value of thecustom
record component.- Specified by:
custom
in interfaceRegistry.Entry
- Returns:
- the value of the
custom
record component
-