Record Class GeyserThrowableComponentImpl
java.lang.Object
java.lang.Record
org.geysermc.geyser.item.custom.impl.GeyserThrowableComponentImpl
- All Implemented Interfaces:
org.geysermc.geyser.api.item.custom.v2.component.geyser.GeyserThrowableComponent
public record GeyserThrowableComponentImpl(boolean doSwingAnimation)
extends Record
implements org.geysermc.geyser.api.item.custom.v2.component.geyser.GeyserThrowableComponent
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionGeyserThrowableComponentImpl(boolean doSwingAnimation) Creates an instance of aGeyserThrowableComponentImplrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thedoSwingAnimationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GeyserThrowableComponentImpl
public GeyserThrowableComponentImpl(boolean doSwingAnimation) Creates an instance of aGeyserThrowableComponentImplrecord class.- Parameters:
doSwingAnimation- the value for thedoSwingAnimationrecord 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 with '=='. -
doSwingAnimation
public boolean doSwingAnimation()Returns the value of thedoSwingAnimationrecord component.- Specified by:
doSwingAnimationin interfaceorg.geysermc.geyser.api.item.custom.v2.component.geyser.GeyserThrowableComponent- Returns:
- the value of the
doSwingAnimationrecord component
-