Record Class AdvancementTabType.Sprites
java.lang.Object
java.lang.Record
net.minecraft.client.gui.screens.advancements.AdvancementTabType.Sprites
- Enclosing class:
- AdvancementTabType
static record AdvancementTabType.Sprites(ResourceLocation first, ResourceLocation middle, ResourceLocation last)
extends Record
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ResourceLocation
The field for thefirst
record component.private final ResourceLocation
The field for thelast
record component.private final ResourceLocation
The field for themiddle
record component. -
Constructor Summary
ConstructorDescriptionSprites
(ResourceLocation first, ResourceLocation middle, ResourceLocation last) Creates an instance of aSprites
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.first()
Returns the value of thefirst
record component.final int
hashCode()
Returns a hash code value for this object.last()
Returns the value of thelast
record component.middle()
Returns the value of themiddle
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
first
The field for thefirst
record component. -
middle
The field for themiddle
record component. -
last
The field for thelast
record component.
-
-
Constructor Details
-
Sprites
Sprites(ResourceLocation first, ResourceLocation middle, ResourceLocation last) Creates an instance of aSprites
record class.- Parameters:
first
- the value for thefirst
record componentmiddle
- the value for themiddle
record componentlast
- the value for thelast
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
first
Returns the value of thefirst
record component.- Returns:
- the value of the
first
record component
-
middle
Returns the value of themiddle
record component.- Returns:
- the value of the
middle
record component
-
last
Returns the value of thelast
record component.- Returns:
- the value of the
last
record component
-