Class InventoryComponent
java.lang.Object
codechicken.lib.block.ModularBlock.Component
codechicken.lib.block.ModularTileBlock.TileComponent<InventoryComponent.Data>
codechicken.lib.block.component.tile.InventoryComponent
@Experimental
public class InventoryComponent
extends ModularTileBlock.TileComponent<InventoryComponent.Data>
A component containing a sequence of item slots.
Created by covers1624 on 24/7/22.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassstatic interface -
Method Summary
Modifier and TypeMethodDescriptionprotected InventoryComponent.DatavoidonChanged(InventoryComponent.Listener listener) Receive a callback when this inventory is modified.Methods inherited from class codechicken.lib.block.ModularBlock.Component
getBlock
-
Method Details
-
onChanged
Receive a callback when this inventory is modified.- Parameters:
listener- The listener.
-
createData
- Specified by:
createDatain classModularTileBlock.TileComponent<InventoryComponent.Data>
-