Record Class Zone
java.lang.Object
java.lang.Record
com.hypixel.hytale.server.worldgen.zone.Zone
public record Zone(int id, String name, @Nonnull ZoneDiscoveryConfig discoveryConfig, @Nullable CaveGenerator caveGenerator, @Nonnull BiomePatternGenerator biomePatternGenerator, @Nonnull UniquePrefabContainer uniquePrefabContainer)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic final record -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BiomePatternGeneratorThe field for thebiomePatternGeneratorrecord component.private final CaveGeneratorThe field for thecaveGeneratorrecord component.private final ZoneDiscoveryConfigThe field for thediscoveryConfigrecord component.private final intThe field for theidrecord component.private final StringThe field for thenamerecord component.private final UniquePrefabContainerThe field for theuniquePrefabContainerrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionZone(int id, String name, ZoneDiscoveryConfig discoveryConfig, CaveGenerator caveGenerator, BiomePatternGenerator biomePatternGenerator, UniquePrefabContainer uniquePrefabContainer) Creates an instance of aZonerecord class. -
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.
-
Field Details
-
id
private final int idThe field for theidrecord component. -
name
The field for thenamerecord component. -
discoveryConfig
The field for thediscoveryConfigrecord component. -
caveGenerator
The field for thecaveGeneratorrecord component. -
biomePatternGenerator
The field for thebiomePatternGeneratorrecord component. -
uniquePrefabContainer
The field for theuniquePrefabContainerrecord component.
-
-
Constructor Details
-
Zone
public Zone(int id, String name, @Nonnull ZoneDiscoveryConfig discoveryConfig, @Nullable CaveGenerator caveGenerator, @Nonnull BiomePatternGenerator biomePatternGenerator, @Nonnull UniquePrefabContainer uniquePrefabContainer) Creates an instance of aZonerecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componentdiscoveryConfig- the value for thediscoveryConfigrecord componentcaveGenerator- the value for thecaveGeneratorrecord componentbiomePatternGenerator- the value for thebiomePatternGeneratorrecord componentuniquePrefabContainer- the value for theuniquePrefabContainerrecord component
-
-
Method Details
-
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. -
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 '=='. -
id
public int id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
discoveryConfig
Returns the value of thediscoveryConfigrecord component.- Returns:
- the value of the
discoveryConfigrecord component
-
caveGenerator
Returns the value of thecaveGeneratorrecord component.- Returns:
- the value of the
caveGeneratorrecord component
-
biomePatternGenerator
Returns the value of thebiomePatternGeneratorrecord component.- Returns:
- the value of the
biomePatternGeneratorrecord component
-
uniquePrefabContainer
Returns the value of theuniquePrefabContainerrecord component.- Returns:
- the value of the
uniquePrefabContainerrecord component
-