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(net.kyori.adventure.key.Key key, 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
ConstructorsConstructorDescriptionDimensionTypeEntry(String namespace, Registry.Properties main, Registry.Properties custom) DimensionTypeEntry(net.kyori.adventure.key.Key key, 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 aDimensionTypeEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatReturns the value of theambientLightrecord component.booleanbedWorks()Returns the value of thebedWorksrecord component.doubleReturns the value of thecoordinateScalerecord component.custom()Returns the value of thecustomrecord component.effects()Returns the value of theeffectsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefixedTimerecord component.booleanReturns the value of thehasCeilingrecord component.final inthashCode()Returns a hash code value for this object.booleanhasRaids()Returns the value of thehasRaidsrecord component.booleanReturns the value of thehasSkylightrecord component.intheight()Returns the value of theheightrecord component.Returns the value of theinfiniburnrecord component.net.kyori.adventure.key.Keykey()Returns the value of thekeyrecord component.intReturns the value of thelogicalHeightrecord component.intminY()Returns the value of theminYrecord component.booleannatural()Returns the value of thenaturalrecord component.booleanReturns the value of thepiglinSaferecord component.booleanReturns the value of therespawnAnchorWorksrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of theultrawarmrecord component.
-
Constructor Details
-
DimensionTypeEntry
-
DimensionTypeEntry
public DimensionTypeEntry(net.kyori.adventure.key.Key key, 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 aDimensionTypeEntryrecord class.- Parameters:
key- the value for thekeyrecord componentultrawarm- the value for theultrawarmrecord componentnatural- the value for thenaturalrecord componentcoordinateScale- the value for thecoordinateScalerecord componenthasSkylight- the value for thehasSkylightrecord componenthasCeiling- the value for thehasCeilingrecord componentambientLight- the value for theambientLightrecord componentfixedTime- the value for thefixedTimerecord componentpiglinSafe- the value for thepiglinSaferecord componentbedWorks- the value for thebedWorksrecord componentrespawnAnchorWorks- the value for therespawnAnchorWorksrecord componenthasRaids- the value for thehasRaidsrecord componentlogicalHeight- the value for thelogicalHeightrecord componentminY- the value for theminYrecord componentheight- the value for theheightrecord componentinfiniburn- the value for theinfiniburnrecord componenteffects- the value for theeffectsrecord componentcustom- the value for thecustomrecord 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 '=='. -
key
public net.kyori.adventure.key.Key key()Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
ultrawarm
public boolean ultrawarm()Returns the value of theultrawarmrecord component.- Returns:
- the value of the
ultrawarmrecord component
-
natural
public boolean natural()Returns the value of thenaturalrecord component.- Returns:
- the value of the
naturalrecord component
-
coordinateScale
public double coordinateScale()Returns the value of thecoordinateScalerecord component.- Returns:
- the value of the
coordinateScalerecord component
-
hasSkylight
public boolean hasSkylight()Returns the value of thehasSkylightrecord component.- Returns:
- the value of the
hasSkylightrecord component
-
hasCeiling
public boolean hasCeiling()Returns the value of thehasCeilingrecord component.- Returns:
- the value of the
hasCeilingrecord component
-
ambientLight
public float ambientLight()Returns the value of theambientLightrecord component.- Returns:
- the value of the
ambientLightrecord component
-
fixedTime
Returns the value of thefixedTimerecord component.- Returns:
- the value of the
fixedTimerecord component
-
piglinSafe
public boolean piglinSafe()Returns the value of thepiglinSaferecord component.- Returns:
- the value of the
piglinSaferecord component
-
bedWorks
public boolean bedWorks()Returns the value of thebedWorksrecord component.- Returns:
- the value of the
bedWorksrecord component
-
respawnAnchorWorks
public boolean respawnAnchorWorks()Returns the value of therespawnAnchorWorksrecord component.- Returns:
- the value of the
respawnAnchorWorksrecord component
-
hasRaids
public boolean hasRaids()Returns the value of thehasRaidsrecord component.- Returns:
- the value of the
hasRaidsrecord component
-
logicalHeight
public int logicalHeight()Returns the value of thelogicalHeightrecord component.- Returns:
- the value of the
logicalHeightrecord component
-
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
-
infiniburn
Returns the value of theinfiniburnrecord component.- Returns:
- the value of the
infiniburnrecord component
-
effects
Returns the value of theeffectsrecord component.- Returns:
- the value of the
effectsrecord component
-
custom
Returns the value of thecustomrecord component.- Specified by:
customin interfaceRegistry.Entry- Returns:
- the value of the
customrecord component
-