Record Class ResolvableHolderSetComponent
java.lang.Object
java.lang.Record
org.geysermc.geyser.item.components.resolvable.ResolvableHolderSetComponent
- All Implemented Interfaces:
ResolvableComponent<org.geysermc.mcprotocollib.protocol.data.game.item.component.HolderSet>
public record ResolvableHolderSetComponent(org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponentType<org.geysermc.mcprotocollib.protocol.data.game.item.component.HolderSet> type, Optional<JavaRegistryKey<?>> registry, List<net.kyori.adventure.key.Key> references)
extends Record
implements ResolvableComponent<org.geysermc.mcprotocollib.protocol.data.game.item.component.HolderSet>
-
Constructor Summary
ConstructorsConstructorDescriptionResolvableHolderSetComponent(org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponentType<org.geysermc.mcprotocollib.protocol.data.game.item.component.HolderSet> type, Optional<JavaRegistryKey<?>> registry, List<net.kyori.adventure.key.Key> references) Creates an instance of aResolvableHolderSetComponentrecord 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 ResolvableHolderSetComponentparse(org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponentType<org.geysermc.mcprotocollib.protocol.data.game.item.component.HolderSet> type, com.google.gson.JsonObject object) List<net.kyori.adventure.key.Key> Returns the value of thereferencesrecord component.registry()Returns the value of theregistryrecord component.@Nullable org.geysermc.mcprotocollib.protocol.data.game.item.component.HolderSetresolve(JavaRegistryProvider registries) final StringtoString()Returns a string representation of this record class.org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponentType<org.geysermc.mcprotocollib.protocol.data.game.item.component.HolderSet> type()Returns the value of thetyperecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.geysermc.geyser.item.components.resolvable.ResolvableComponent
resolve
-
Constructor Details
-
ResolvableHolderSetComponent
public ResolvableHolderSetComponent(org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponentType<org.geysermc.mcprotocollib.protocol.data.game.item.component.HolderSet> type, Optional<JavaRegistryKey<?>> registry, List<net.kyori.adventure.key.Key> references) Creates an instance of aResolvableHolderSetComponentrecord class.- Parameters:
type- the value for thetyperecord componentregistry- the value for theregistryrecord componentreferences- the value for thereferencesrecord component
-
-
Method Details
-
parse
public static ResolvableHolderSetComponent parse(org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponentType<org.geysermc.mcprotocollib.protocol.data.game.item.component.HolderSet> type, com.google.gson.JsonObject object) -
resolve
public @Nullable org.geysermc.mcprotocollib.protocol.data.game.item.component.HolderSet resolve(JavaRegistryProvider registries) - Specified by:
resolvein interfaceResolvableComponent<org.geysermc.mcprotocollib.protocol.data.game.item.component.HolderSet>
-
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). -
type
public org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponentType<org.geysermc.mcprotocollib.protocol.data.game.item.component.HolderSet> type()Returns the value of thetyperecord component.- Specified by:
typein interfaceResolvableComponent<org.geysermc.mcprotocollib.protocol.data.game.item.component.HolderSet>- Returns:
- the value of the
typerecord component
-
registry
Returns the value of theregistryrecord component.- Returns:
- the value of the
registryrecord component
-
references
Returns the value of thereferencesrecord component.- Returns:
- the value of the
referencesrecord component
-