Record Class StructurePlacement.ExclusionZone
java.lang.Object
java.lang.Record
dev.wyck.worldgen.structure.placement.StructurePlacement.ExclusionZone
- Record Components:
otherSet- the structure set to stay clear ofchunkCount- how many chunks of clearance to keep
- Enclosing interface:
StructurePlacement
@AsOf("3.4.0")
public static record StructurePlacement.ExclusionZone(StructureSet otherSet, int chunkCount)
extends Record
Keeps a placement away from chunks where another structure set already placed.
- Since:
- 3.4.0
-
Constructor Summary
ConstructorsConstructorDescriptionExclusionZone(StructureSet otherSet, int chunkCount) Creates an instance of aExclusionZonerecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thechunkCountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.of(StructureSet otherSet, int chunkCount) Creates a new exclusion zone.otherSet()Returns the value of theotherSetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ExclusionZone
Creates an instance of aExclusionZonerecord class.- Parameters:
otherSet- the value for theotherSetrecord componentchunkCount- the value for thechunkCountrecord component
-
-
Method Details
-
of
@AsOf("3.4.0") public static StructurePlacement.ExclusionZone of(StructureSet otherSet, int chunkCount) Creates a new exclusion zone.- Parameters:
otherSet- the structure set to stay clear ofchunkCount- how many chunks of clearance to keep- Returns:
- a new exclusion zone
- Since:
- 3.4.0
-
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. -
otherSet
-
chunkCount
public int chunkCount()Returns the value of thechunkCountrecord component.- Returns:
- the value of the
chunkCountrecord component
-