Package net.minecraft.client.gui.screen
Record Class ChatPreviewBackground.RenderData
java.lang.Object
java.lang.Record
net.minecraft.client.gui.screen.ChatPreviewBackground.RenderData
- Record Components:
preview
-alpha
-
- Enclosing class:
ChatPreviewBackground
@Environment(CLIENT)
public static record ChatPreviewBackground.RenderData(@Nullable Text preview, float alpha)
extends Record
- Mappings:
Namespace Name official ehe$a
intermediary net/minecraft/class_7625$class_7626
named net/minecraft/client/gui/screen/ChatPreviewBackground$RenderData
official b
intermediary comp_957
named preview
official c
intermediary comp_958
named alpha
-
Field Summary
-
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. -
EMPTY
- Mappings:
Namespace Name Mixin selector official a
Lehe$a;a:Lehe$a;
intermediary field_39849
Lnet/minecraft/class_7625$class_7626;field_39849:Lnet/minecraft/class_7625$class_7626;
named EMPTY
Lnet/minecraft/client/gui/screen/ChatPreviewBackground$RenderData;EMPTY:Lnet/minecraft/client/gui/screen/ChatPreviewBackground$RenderData;
-
-
Constructor Details
-
RenderData
-
-
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
-