Package org.geysermc.geyser.pack
Record Class ResourcePackHolder
java.lang.Object
java.lang.Record
org.geysermc.geyser.pack.ResourcePackHolder
public record ResourcePackHolder(@NonNull GeyserResourcePack pack, @NonNull OptionHolder optionHolder)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionResourcePackHolder(@NonNull GeyserResourcePack pack, @NonNull OptionHolder optionHolder) Creates an instance of aResourcePackHolderrecord class. -
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 ResourcePackHolderof(GeyserResourcePack pack) @NonNull OptionHolderReturns the value of theoptionHolderrecord component.@NonNull GeyserResourcePackpack()Returns the value of thepackrecord component.org.geysermc.geyser.api.pack.ResourcePackfinal StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ResourcePackHolder
Creates an instance of aResourcePackHolderrecord class.- Parameters:
pack- the value for thepackrecord componentoptionHolder- the value for theoptionHolderrecord component
-
-
Method Details
-
of
-
resourcePack
public org.geysermc.geyser.api.pack.ResourcePack resourcePack() -
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). -
pack
Returns the value of thepackrecord component.- Returns:
- the value of the
packrecord component
-
optionHolder
Returns the value of theoptionHolderrecord component.- Returns:
- the value of the
optionHolderrecord component
-