Record Class ResolvableToolProperties
java.lang.Object
java.lang.Record
org.geysermc.geyser.item.components.resolvable.ResolvableToolProperties
- All Implemented Interfaces:
ResolvableComponent<org.geysermc.mcprotocollib.protocol.data.game.item.component.ToolData>
public record ResolvableToolProperties(org.geysermc.geyser.api.item.custom.v2.component.java.JavaTool properties)
extends Record
implements ResolvableComponent<org.geysermc.mcprotocollib.protocol.data.game.item.component.ToolData>
-
Constructor Summary
ConstructorsConstructorDescriptionResolvableToolProperties(org.geysermc.geyser.api.item.custom.v2.component.java.JavaTool properties) Creates an instance of aResolvableToolPropertiesrecord 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.org.geysermc.geyser.api.item.custom.v2.component.java.JavaToolReturns the value of thepropertiesrecord component.org.geysermc.mcprotocollib.protocol.data.game.item.component.ToolDataresolve(GeyserSession session) 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.ToolData> type()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
-
ResolvableToolProperties
public ResolvableToolProperties(org.geysermc.geyser.api.item.custom.v2.component.java.JavaTool properties) Creates an instance of aResolvableToolPropertiesrecord class.- Parameters:
properties- the value for thepropertiesrecord component
-
-
Method Details
-
type
public org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponentType<org.geysermc.mcprotocollib.protocol.data.game.item.component.ToolData> type()- Specified by:
typein interfaceResolvableComponent<org.geysermc.mcprotocollib.protocol.data.game.item.component.ToolData>
-
resolve
public org.geysermc.mcprotocollib.protocol.data.game.item.component.ToolData resolve(GeyserSession session) - Specified by:
resolvein interfaceResolvableComponent<org.geysermc.mcprotocollib.protocol.data.game.item.component.ToolData>
-
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). -
properties
public org.geysermc.geyser.api.item.custom.v2.component.java.JavaTool properties()Returns the value of thepropertiesrecord component.- Returns:
- the value of the
propertiesrecord component
-