Record Class WidgetSprites
java.lang.Object
java.lang.Record
net.minecraft.client.gui.components.WidgetSprites
public record WidgetSprites(ResourceLocation enabled, ResourceLocation disabled, ResourceLocation enabledFocused, ResourceLocation disabledFocused)
extends Record
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final ResourceLocationThe field for thedisabledrecord component.private final ResourceLocationThe field for thedisabledFocusedrecord component.private final ResourceLocationThe field for theenabledrecord component.private final ResourceLocationThe field for theenabledFocusedrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionWidgetSprites(ResourceLocation p_295225_, ResourceLocation p_294772_) WidgetSprites(ResourceLocation p_296152_, ResourceLocation p_296020_, ResourceLocation p_296073_) WidgetSprites(ResourceLocation enabled, ResourceLocation disabled, ResourceLocation enabledFocused, ResourceLocation disabledFocused) Creates an instance of aWidgetSpritesrecord class.
- 
Method SummaryModifier 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 p_296269_, boolean p_295773_) final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
enabledThe field for theenabledrecord component.
- 
disabledThe field for thedisabledrecord component.
- 
enabledFocusedThe field for theenabledFocusedrecord component.
- 
disabledFocusedThe field for thedisabledFocusedrecord component.
 
- 
- 
Constructor Details- 
WidgetSprites
- 
WidgetSpritespublic WidgetSprites(ResourceLocation p_296152_, ResourceLocation p_296020_, ResourceLocation p_296073_) 
- 
WidgetSpritespublic WidgetSprites(ResourceLocation enabled, ResourceLocation disabled, ResourceLocation enabledFocused, ResourceLocation disabledFocused) Creates an instance of aWidgetSpritesrecord class.- Parameters:
- enabled- the value for the- enabledrecord component
- disabled- the value for the- disabledrecord component
- enabledFocused- the value for the- enabledFocusedrecord component
- disabledFocused- the value for the- disabledFocusedrecord component
 
 
- 
- 
Method Details- 
get
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
enabledReturns the value of theenabledrecord component.- Returns:
- the value of the enabledrecord component
 
- 
disabledReturns the value of thedisabledrecord component.- Returns:
- the value of the disabledrecord component
 
- 
enabledFocusedReturns the value of theenabledFocusedrecord component.- Returns:
- the value of the enabledFocusedrecord component
 
- 
disabledFocusedReturns the value of thedisabledFocusedrecord component.- Returns:
- the value of the disabledFocusedrecord component
 
 
-