Contents
Record Class Zone
java.lang.Object
java.lang.Record
com.hypixel.hytale.server.worldgen.zone.Zone
- Record Components:
id- The unique identifier of the zone.name- The name of the zone.discoveryConfig- The discovery configuration for this zone.caveGenerator- The cave generator used for this zone, ornullif none.biomePatternGenerator- The biome pattern generator for this zone.uniquePrefabContainer- The unique prefab container for this zone.
public record Zone(int id, String name, @Nonnull ZoneDiscoveryConfig discoveryConfig, @Nullable CaveGenerator caveGenerator, @Nonnull BiomePatternGenerator biomePatternGenerator, @Nonnull UniquePrefabContainer uniquePrefabContainer)
extends Record
A zone represents a large area in the world with specific characteristics,
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordA unique instance placed in the world.static final recordA candidate position for placing a unique prefab.static final recordA unique entry defining a unique prefab. -
Constructor Summary
ConstructorsConstructorDescriptionZone(int id, String name, ZoneDiscoveryConfig discoveryConfig, CaveGenerator caveGenerator, BiomePatternGenerator biomePatternGenerator, UniquePrefabContainer uniquePrefabContainer) Default Constructor for aZoneinstance. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebiomePatternGeneratorrecord component.Returns the value of thecaveGeneratorrecord component.Returns the value of thediscoveryConfigrecord component.final booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.intid()Returns the value of theidrecord component.name()Returns the value of thenamerecord component.toString()Returns a string representation of this record class.Returns the value of theuniquePrefabContainerrecord component.
-
Constructor Details
-
Zone
public Zone(int id, @Nonnull String name, @Nonnull ZoneDiscoveryConfig discoveryConfig, @Nullable CaveGenerator caveGenerator, @Nonnull BiomePatternGenerator biomePatternGenerator, @Nonnull UniquePrefabContainer uniquePrefabContainer) Default Constructor for aZoneinstance.- Parameters:
id- The unique identifier of the zone.name- The name of the zone.discoveryConfig- The discovery configuration for this zone.caveGenerator- The cave generator used for this zone, ornullif none.biomePatternGenerator- The biome pattern generator for this zone.uniquePrefabContainer- The unique prefab container for this zone.
-
-
Method Details
-
id
-
name
-
discoveryConfig
Returns the value of thediscoveryConfigrecord component.- Returns:
- the value of the
discoveryConfigrecord component
-
biomePatternGenerator
Returns the value of thebiomePatternGeneratorrecord component.- Returns:
- the value of the
biomePatternGeneratorrecord component
-
caveGenerator
Returns the value of thecaveGeneratorrecord component.- Returns:
- the value of the
caveGeneratorrecord component
-
uniquePrefabContainer
Returns the value of theuniquePrefabContainerrecord component.- Returns:
- the value of the
uniquePrefabContainerrecord component
-
hashCode
-
toString
-
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.
-