Record Class CreativeTabRegistry.Definition
java.lang.Object
java.lang.Record
net.rebel459.unified.impl.data.registry.CreativeTabRegistry.Definition
- Enclosing class:
CreativeTabRegistry
public static record CreativeTabRegistry.Definition(net.minecraft.world.item.CreativeModeTab.Row row, int column, net.minecraft.network.chat.Component title, Supplier<net.minecraft.world.item.ItemStack> icon, List<ExtensibleCodecBase.Entry<net.minecraft.world.item.CreativeModeTab.DisplayItemsGenerator>> displayItems, boolean canScroll, boolean showTitle, CreativeTabRegistry.Alignment alignment, net.minecraft.resources.Identifier backgroundTexture)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionDefinition(net.minecraft.world.item.CreativeModeTab.Row row, int column, net.minecraft.network.chat.Component title, Supplier<net.minecraft.world.item.ItemStack> icon, List<ExtensibleCodecBase.Entry<net.minecraft.world.item.CreativeModeTab.DisplayItemsGenerator>> displayItems, boolean canScroll, boolean showTitle, CreativeTabRegistry.Alignment alignment, net.minecraft.resources.Identifier backgroundTexture) Creates an instance of aDefinitionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thealignmentrecord component.net.minecraft.resources.IdentifierReturns the value of thebackgroundTexturerecord component.booleanReturns the value of thecanScrollrecord component.intcolumn()Returns the value of thecolumnrecord component.List<ExtensibleCodecBase.Entry<net.minecraft.world.item.CreativeModeTab.DisplayItemsGenerator>> Returns the value of thedisplayItemsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Supplier<net.minecraft.world.item.ItemStack> icon()Returns the value of theiconrecord component.net.minecraft.world.item.CreativeModeTab.Rowrow()Returns the value of therowrecord component.booleanReturns the value of theshowTitlerecord component.net.minecraft.network.chat.Componenttitle()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Definition
public Definition(net.minecraft.world.item.CreativeModeTab.Row row, int column, net.minecraft.network.chat.Component title, Supplier<net.minecraft.world.item.ItemStack> icon, List<ExtensibleCodecBase.Entry<net.minecraft.world.item.CreativeModeTab.DisplayItemsGenerator>> displayItems, boolean canScroll, boolean showTitle, CreativeTabRegistry.Alignment alignment, net.minecraft.resources.Identifier backgroundTexture) Creates an instance of aDefinitionrecord class.- Parameters:
row- the value for therowrecord componentcolumn- the value for thecolumnrecord componenttitle- the value for thetitlerecord componenticon- the value for theiconrecord componentdisplayItems- the value for thedisplayItemsrecord componentcanScroll- the value for thecanScrollrecord componentshowTitle- the value for theshowTitlerecord componentalignment- the value for thealignmentrecord componentbackgroundTexture- the value for thebackgroundTexturerecord 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. -
row
public net.minecraft.world.item.CreativeModeTab.Row row()Returns the value of therowrecord component.- Returns:
- the value of the
rowrecord component
-
column
public int column()Returns the value of thecolumnrecord component.- Returns:
- the value of the
columnrecord component
-
title
public net.minecraft.network.chat.Component title()Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
icon
Returns the value of theiconrecord component.- Returns:
- the value of the
iconrecord component
-
displayItems
public List<ExtensibleCodecBase.Entry<net.minecraft.world.item.CreativeModeTab.DisplayItemsGenerator>> displayItems()Returns the value of thedisplayItemsrecord component.- Returns:
- the value of the
displayItemsrecord component
-
canScroll
public boolean canScroll()Returns the value of thecanScrollrecord component.- Returns:
- the value of the
canScrollrecord component
-
showTitle
public boolean showTitle()Returns the value of theshowTitlerecord component.- Returns:
- the value of the
showTitlerecord component
-
alignment
Returns the value of thealignmentrecord component.- Returns:
- the value of the
alignmentrecord component
-
backgroundTexture
public net.minecraft.resources.Identifier backgroundTexture()Returns the value of thebackgroundTexturerecord component.- Returns:
- the value of the
backgroundTexturerecord component
-