Package dev.itsharshxd.zentrix.api.loot
Record Class GameLootResolution
java.lang.Object
java.lang.Record
dev.itsharshxd.zentrix.api.loot.GameLootResolution
public record GameLootResolution(@NotNull ZentrixGame game, @NotNull GameLootPool pool)
extends Record
Runtime game and game-loot pool owning a world.
-
Constructor Summary
ConstructorsConstructorDescriptionGameLootResolution(@NotNull ZentrixGame game, @NotNull GameLootPool pool) Creates an instance of aGameLootResolutionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.@NotNull ZentrixGamegame()Returns the value of thegamerecord component.final inthashCode()Returns a hash code value for this object.@NotNull GameLootPoolpool()Returns the value of thepoolrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GameLootResolution
Creates an instance of aGameLootResolutionrecord class.- Parameters:
game- the value for thegamerecord componentpool- the value for thepoolrecord component
-
-
Method Details
-
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. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code 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. All components in this record class are compared withObjects::equals(Object,Object). -
game
Returns the value of thegamerecord component.- Returns:
- the value of the
gamerecord component
-
pool
Returns the value of thepoolrecord component.- Returns:
- the value of the
poolrecord component
-