Record Class CreativeTabCategory
java.lang.Object
java.lang.Record
team.lodestar.lodestone.modules.toolkit.creative_tab.CreativeTabCategory
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic enum -
Constructor Summary
ConstructorsConstructorDescriptionCreativeTabCategory(String mod, String id, List<com.mojang.datafixers.util.Either<Supplier<net.minecraft.world.item.ItemStack>, CreativeTabCategory.Operation>> items) Creates an instance of aCreativeTabCategoryrecord 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.id()Returns the value of theidrecord component.List<com.mojang.datafixers.util.Either<Supplier<net.minecraft.world.item.ItemStack>, CreativeTabCategory.Operation>> items()Returns the value of theitemsrecord component.mod()Returns the value of themodrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CreativeTabCategory
public CreativeTabCategory(String mod, String id, List<com.mojang.datafixers.util.Either<Supplier<net.minecraft.world.item.ItemStack>, CreativeTabCategory.Operation>> items) Creates an instance of aCreativeTabCategoryrecord class.- Parameters:
mod- the value for themodrecord componentid- the value for theidrecord componentitems- the value for theitemsrecord component
-
-
Method Details
-
getHeaderLangKey
-
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). -
mod
Returns the value of themodrecord component.- Returns:
- the value of the
modrecord component
-
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
items
public List<com.mojang.datafixers.util.Either<Supplier<net.minecraft.world.item.ItemStack>,CreativeTabCategory.Operation>> items()Returns the value of theitemsrecord component.- Returns:
- the value of the
itemsrecord component
-