Package org.geysermc.geyser.impl
Record Class HoldersImpl
java.lang.Object
java.lang.Record
org.geysermc.geyser.impl.HoldersImpl
- All Implemented Interfaces:
org.geysermc.geyser.api.util.Holders
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionHoldersImpl(@Nullable List<@NonNull org.geysermc.geyser.api.util.Identifier> identifiers, @Nullable org.geysermc.geyser.api.util.Identifier tag) Creates an instance of aHoldersImplrecord 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.@Nullable List<@NonNull org.geysermc.geyser.api.util.Identifier> Returns the value of theidentifiersrecord component.@Nullable org.geysermc.geyser.api.util.Identifiertag()Returns the value of thetagrecord component.org.geysermc.mcprotocollib.protocol.data.game.item.component.HolderSettoHolderSet(GeyserSession session, JavaRegistryKey<?> registry) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HoldersImpl
public HoldersImpl(@Nullable List<@NonNull org.geysermc.geyser.api.util.Identifier> identifiers, @Nullable org.geysermc.geyser.api.util.Identifier tag) Creates an instance of aHoldersImplrecord class.- Parameters:
identifiers- the value for theidentifiersrecord componenttag- the value for thetagrecord component
-
-
Method Details
-
toHolderSet
public org.geysermc.mcprotocollib.protocol.data.game.item.component.HolderSet toHolderSet(GeyserSession session, JavaRegistryKey<?> registry) -
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). -
identifiers
Returns the value of theidentifiersrecord component.- Returns:
- the value of the
identifiersrecord component
-
tag
public @Nullable org.geysermc.geyser.api.util.Identifier tag()Returns the value of thetagrecord component.- Returns:
- the value of the
tagrecord component
-