Record Class SectionColored
java.lang.Object
java.lang.Record
net.mcexpanded.fancytabsections.creativetab.SectionColored
- All Implemented Interfaces:
Section
-
Constructor Summary
ConstructorsConstructorDescriptionSectionColored(net.minecraft.resources.Identifier id, net.minecraft.network.chat.Component title, int bannerColor, int textColor, List<net.minecraft.world.item.Item> items) Creates an instance of aSectionColoredrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thebannerColorrecord component.final 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.List<net.minecraft.world.item.Item> items()Returns the value of theitemsrecord component.intReturns the value of thetextColorrecord component.net.minecraft.network.chat.Componenttitle()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SectionColored
public SectionColored(net.minecraft.resources.Identifier id, net.minecraft.network.chat.Component title, int bannerColor, int textColor, List<net.minecraft.world.item.Item> items) Creates an instance of aSectionColoredrecord class.- Parameters:
id- the value for theidrecord componenttitle- the value for thetitlerecord componentbannerColor- the value for thebannerColorrecord componenttextColor- the value for thetextColorrecord componentitems- the value for theitemsrecord component
-
-
Method Details
-
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
-
bannerColor
public int bannerColor()Returns the value of thebannerColorrecord component.- Returns:
- the value of the
bannerColorrecord component
-
textColor
-
items
-