Record Class TileGridManager.GridUpdateResult
java.lang.Object
java.lang.Record
io.hymods.lib.tiles.TileGridManager.GridUpdateResult
- Record Components:
tilesToGenerate- List of tile coordinates that need to be generatedslotAssignments- Map from tile coordinate to the slot it should be assigned to
- Enclosing class:
TileGridManager
-
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.booleanReturns the value of theslotAssignmentsrecord component.Returns the value of thetilesToGeneraterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GridUpdateResult
Creates an instance of aGridUpdateResultrecord class.- Parameters:
tilesToGenerate- the value for thetilesToGeneraterecord componentslotAssignments- the value for theslotAssignmentsrecord component
-
-
Method Details
-
needsGeneration
public boolean needsGeneration() -
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. All components in this record class are compared withObjects::equals(Object,Object). -
tilesToGenerate
Returns the value of thetilesToGeneraterecord component.- Returns:
- the value of the
tilesToGeneraterecord component
-
slotAssignments
Returns the value of theslotAssignmentsrecord component.- Returns:
- the value of the
slotAssignmentsrecord component
-