Package net.minecraft.client.gui.screen
Record Class ButtonTextures
java.lang.Object
java.lang.Record
net.minecraft.client.gui.screen.ButtonTextures
- Record Components:
enabled-disabled-enabledFocused-disabledFocused-
@Environment(CLIENT)
public record ButtonTextures(Identifier enabled, Identifier disabled, Identifier enabledFocused, Identifier disabledFocused)
extends Record
- Mappings:
Namespace Name official ettintermediary net/minecraft/class_8666named net/minecraft/client/gui/screen/ButtonTexturesofficial aintermediary comp_1604named enabledofficial bintermediary comp_1605named disabledofficial cintermediary comp_1606named enabledFocusedofficial dintermediary comp_1607named disabledFocused
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IdentifierThe field for thedisabledrecord component.private final IdentifierThe field for thedisabledFocusedrecord component.private final IdentifierThe field for theenabledrecord component.private final IdentifierThe field for theenabledFocusedrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionButtonTextures(Identifier unfocused, Identifier focused) ButtonTextures(Identifier enabled, Identifier focused, Identifier disabled) ButtonTextures(Identifier identifier, Identifier identifier2, Identifier identifier3, Identifier identifier4) -
Method Summary
Modifier and TypeMethodDescriptiondisabled()Returns the value of thedisabledrecord component.Returns the value of thedisabledFocusedrecord component.enabled()Returns the value of theenabledrecord component.Returns the value of theenabledFocusedrecord component.final booleanIndicates whether some other object is "equal to" this one.get(boolean enabled, boolean focused) final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
enabled
The field for theenabledrecord component. -
disabled
The field for thedisabledrecord component. -
enabledFocused
The field for theenabledFocusedrecord component. -
disabledFocused
The field for thedisabledFocusedrecord component.
-
-
Constructor Details
-
ButtonTextures
- Mappings:
Namespace Name Mixin selector official <init>Lett;<init>(Laep;Laep;)Vintermediary <init>Lnet/minecraft/class_8666;<init>(Lnet/minecraft/class_2960;Lnet/minecraft/class_2960;)Vnamed <init>Lnet/minecraft/client/gui/screen/ButtonTextures;<init>(Lnet/minecraft/util/Identifier;Lnet/minecraft/util/Identifier;)V
-
ButtonTextures
- Mappings:
Namespace Name Mixin selector official <init>Lett;<init>(Laep;Laep;Laep;)Vintermediary <init>Lnet/minecraft/class_8666;<init>(Lnet/minecraft/class_2960;Lnet/minecraft/class_2960;Lnet/minecraft/class_2960;)Vnamed <init>Lnet/minecraft/client/gui/screen/ButtonTextures;<init>(Lnet/minecraft/util/Identifier;Lnet/minecraft/util/Identifier;Lnet/minecraft/util/Identifier;)V
-
ButtonTextures
public ButtonTextures(Identifier identifier, Identifier identifier2, Identifier identifier3, Identifier identifier4)
-
-
Method Details
-
get
- Mappings:
Namespace Name Mixin selector official aLett;a(ZZ)Laep;intermediary method_52729Lnet/minecraft/class_8666;method_52729(ZZ)Lnet/minecraft/class_2960;named getLnet/minecraft/client/gui/screen/ButtonTextures;get(ZZ)Lnet/minecraft/util/Identifier;
-
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). -
enabled
Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
disabled
Returns the value of thedisabledrecord component.- Returns:
- the value of the
disabledrecord component
-
enabledFocused
Returns the value of theenabledFocusedrecord component.- Returns:
- the value of the
enabledFocusedrecord component
-
disabledFocused
Returns the value of thedisabledFocusedrecord component.- Returns:
- the value of the
disabledFocusedrecord component
-