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$aintermediary net/minecraft/class_7625$class_7626named net/minecraft/client/gui/screen/ChatPreviewBackground$RenderDataofficial bintermediary comp_957named previewofficial cintermediary comp_958named alpha
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatalpha()Returns the value of thealpharecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.preview()Returns the value of thepreviewrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
preview
The field for thepreviewrecord component. -
alpha
private final float alphaThe field for thealpharecord component. -
EMPTY
- Mappings:
Namespace Name Mixin selector official aLehe$a;a:Lehe$a;intermediary field_39849Lnet/minecraft/class_7625$class_7626;field_39849:Lnet/minecraft/class_7625$class_7626;named EMPTYLnet/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 thepreviewrecord component.- Returns:
- the value of the
previewrecord component
-
alpha
public float alpha()Returns the value of thealpharecord component.- Returns:
- the value of the
alpharecord component
-