@CatalogedBy(value=GuiIds.class) public interface GuiId extends CatalogType
GuiIdProperty
when building a custom Inventory
.
The GuiId defines what Container
is displayed on the client side when the
custom inventory is opened.
When using the default vanilla InventoryArchetype
s the
GuiIdProperty is already set, but can be overridden.
Sponge will not allow to open a inventory that has the wrong total size for the GuiId. e.g. You can open a 1x9 Grid Inventory as a Dispenser (3x3). But a 2x9 inventory will not work with it.
getId, getName