Record Class WorldContext
java.lang.Object
java.lang.Record
dev.wyck.worldgen.WorldContext
- Record Components:
resourceKey- the world's keyuuid- the world's UUIDseed- the world's seedminHeight- the world's minimum heightmaxHeight- the world's maximum heightdimension- the world's dimensionchunkGenerator- the world's chunk generatorbukkitName- the world's name, obsoleteenvironment- the world's environment
- All Implemented Interfaces:
Keyed
@NullMarked
@AsOf("3.4.0")
public record WorldContext(ResourceKey resourceKey, UUID uuid, long seed, int minHeight, int maxHeight, Dimension dimension, ChunkGenerator chunkGenerator, String bukkitName, World.Environment environment)
extends Record
implements Keyed
Information about a world. Wyck's version of
WorldInfo.- Since:
- 3.4.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionWorldContext(ResourceKey resourceKey, UUID uuid, long seed, int minHeight, int maxHeight, Dimension dimension, ChunkGenerator chunkGenerator, String bukkitName, World.Environment environment) Creates an instance of aWorldContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebukkitNamerecord component.Returns the value of thechunkGeneratorrecord component.Returns the value of thedimensionrecord component.Returns the value of theenvironmentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.key()intReturns the value of themaxHeightrecord component.intReturns the value of theminHeightrecord component.name()Returns the value of theresourceKeyrecord component.longseed()Returns the value of theseedrecord component.final StringtoString()Returns a string representation of this record class.uid()uniqueId()uuid()Returns the value of theuuidrecord component.
-
Constructor Details
-
WorldContext
@Internal public WorldContext(ResourceKey resourceKey, UUID uuid, long seed, int minHeight, int maxHeight, Dimension dimension, ChunkGenerator chunkGenerator, String bukkitName, World.Environment environment) Creates an instance of aWorldContextrecord class.- Parameters:
resourceKey- the value for theresourceKeyrecord componentuuid- the value for theuuidrecord componentseed- the value for theseedrecord componentminHeight- the value for theminHeightrecord componentmaxHeight- the value for themaxHeightrecord componentdimension- the value for thedimensionrecord componentchunkGenerator- the value for thechunkGeneratorrecord componentbukkitName- the value for thebukkitNamerecord componentenvironment- the value for theenvironmentrecord component
-
-
Method Details
-
key
-
name
-
uid
-
uniqueId
-
generator
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
resourceKey
Returns the value of theresourceKeyrecord component.- Returns:
- the value of the
resourceKeyrecord component
-
uuid
-
seed
-
minHeight
-
maxHeight
-
dimension
-
chunkGenerator
Returns the value of thechunkGeneratorrecord component.- Returns:
- the value of the
chunkGeneratorrecord component
-
bukkitName
Returns the value of thebukkitNamerecord component.- Returns:
- the value of the
bukkitNamerecord component
-
environment
Returns the value of theenvironmentrecord component.- Returns:
- the value of the
environmentrecord component
-