Record Class SectionTextured
java.lang.Object
java.lang.Record
net.mcexpanded.fancytabsections.creativetab.SectionTextured
- All Implemented Interfaces:
Section
public record SectionTextured(net.minecraft.resources.Identifier id, net.minecraft.network.chat.Component title, net.minecraft.resources.Identifier texture, int textColor, ConglomerateOfItems items)
extends Record
implements Section
-
Constructor Summary
ConstructorsConstructorDescriptionSectionTextured(net.minecraft.resources.Identifier id, net.minecraft.network.chat.Component title, net.minecraft.resources.Identifier texture, int textColor, ConglomerateOfItems items) Creates an instance of aSectionTexturedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.resources.Identifierid()Returns the value of theidrecord component.items()Returns the value of theitemsrecord component.static SectionTexturedof(net.minecraft.resources.Identifier id, net.minecraft.network.chat.Component title, int textColor, ConglomerateOfItems items) The texture must be placed at [namespace]:textures/gui/fancy_tab_section/[path].png when using this builderintReturns the value of thetextColorrecord component.net.minecraft.resources.Identifiertexture()Returns the value of thetexturerecord component.net.minecraft.network.chat.Componenttitle()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SectionTextured
public SectionTextured(net.minecraft.resources.Identifier id, net.minecraft.network.chat.Component title, net.minecraft.resources.Identifier texture, int textColor, ConglomerateOfItems items) Creates an instance of aSectionTexturedrecord class.- Parameters:
id- the value for theidrecord componenttitle- the value for thetitlerecord componenttexture- the value for thetexturerecord componenttextColor- the value for thetextColorrecord componentitems- the value for theitemsrecord component
-
-
Method Details
-
of
public static SectionTextured of(net.minecraft.resources.Identifier id, net.minecraft.network.chat.Component title, int textColor, ConglomerateOfItems items) The texture must be placed at [namespace]:textures/gui/fancy_tab_section/[path].png when using this builder -
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
id
-
title
-
texture
public net.minecraft.resources.Identifier texture()Returns the value of thetexturerecord component.- Returns:
- the value of the
texturerecord component
-
textColor
-
items
Returns the value of theitemsrecord component.
-