Package net.minecraft.client.gui.chat
Record Class ChatPreviewAnimator.State
java.lang.Object
java.lang.Record
net.minecraft.client.gui.chat.ChatPreviewAnimator.State
- Enclosing class:
- ChatPreviewAnimator
-
Field Summary
Modifier and TypeFieldDescriptionprivate final float
The field for thealpha
record component.static final ChatPreviewAnimator.State
private final Component
The field for thepreview
record component. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
alpha()
Returns the value of thealpha
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.preview()
Returns the value of thepreview
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
preview
The field for thepreview
record component. -
alpha
private final float alphaThe field for thealpha
record component. -
DISABLED
-
-
Constructor Details
-
State
Creates an instance of aState
record class.- Parameters:
preview
- the value for thepreview
record componentalpha
- the value for thealpha
record 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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
preview
Returns the value of thepreview
record component.- Returns:
- the value of the
preview
record component
-
alpha
public float alpha()Returns the value of thealpha
record component.- Returns:
- the value of the
alpha
record component
-