Record Class StructureSet.Entry
java.lang.Object
java.lang.Record
dev.wyck.worldgen.structure.StructureSet.Entry
- Record Components:
structure- the structureweight- the weight the structure is chosen by
- Enclosing interface:
StructureSet
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static StructureSet.EntryCreates a new entry with a weight of 1.static StructureSet.EntryCreates a new entry.Returns the value of thestructurerecord component.final StringtoString()Returns a string representation of this record class.intweight()Returns the value of theweightrecord component.
-
Constructor Details
-
Entry
-
-
Method Details
-
of
Creates a new entry.- Parameters:
structure- the structureweight- the weight the structure is chosen by- Returns:
- a new entry
- Since:
- 3.4.0
-
of
Creates a new entry with a weight of 1.- Parameters:
structure- the structure- Returns:
- a new entry
- 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. -
structure
-
weight
-