Package mcp.mobius.waila.api.data
Class ItemData
java.lang.Object
mcp.mobius.waila.api.data.ItemData
- All Implemented Interfaces:
IData
Adds item information to an object.
-
Nested Class Summary
Nested classes/interfaces inherited from interface mcp.mobius.waila.api.IData
IData.Type<D extends IData>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ResourceLocation
static final ResourceLocation
static final ResourceLocation
static final ResourceLocation
static final ResourceLocation
static final ResourceLocation
static final IData.Type
<ItemData> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadd
(Collection<ItemStack> stacks) Adds multiple item stacks.Adds a single item stack.Adds multiple item stacks.ensureSpace
(int length) Ensure the internal list has empty space for the specified amount.getter
(IntFunction<ItemStack> getter, int size) Adds items from a slot -> stack function.static ItemData
of
(IPluginConfig config) Creates an item data based from plugin config.Adds items from vanilla container.
-
Field Details
-
ID
-
TYPE
-
CONFIG_SYNC_NBT
-
CONFIG_DISPLAY_MODE
-
CONFIG_MAX_HEIGHT
-
CONFIG_SORT_BY_COUNT
-
CONFIG_GRID_MODE_SCALE
-
-
Constructor Details
-
ItemData
public ItemData()
-
-
Method Details
-
of
Creates an item data based from plugin config. -
vanilla
Adds items from vanilla container. -
getter
Adds items from a slot -> stack function. -
add
Adds a single item stack. -
add
Adds multiple item stacks. -
add
Adds multiple item stacks. -
ensureSpace
Ensure the internal list has empty space for the specified amount.
-