Interface ContainerLayoutOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
ContainerLayout, ContainerLayout.Builder
@Generated
public interface ContainerLayoutOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetBookPages(int index) Book pages for lectern containers.intBook pages for lectern containers.Book pages for lectern containers.getBookPagesOrBuilder(int index) Book pages for lectern containers.List<? extends BookPageOrBuilder> Book pages for lectern containers.getButtons(int index) Available action buttons for this container.intAvailable action buttons for this container.Available action buttons for this container.getButtonsOrBuilder(int index) Available action buttons for this container.List<? extends ContainerButtonOrBuilder> Available action buttons for this container.Container type identifier for client-specific rendering.com.google.protobuf.ByteStringContainer type identifier for client-specific rendering.intCurrent page being displayed (for lectern).getRegions(int index) Ordered list of slot regions defining the container layout.intOrdered list of slot regions defining the container layout.Ordered list of slot regions defining the container layout.getRegionsOrBuilder(int index) Ordered list of slot regions defining the container layout.List<? extends SlotRegionOrBuilder> Ordered list of slot regions defining the container layout.getTextInputs(int index) Text input fields available in this container.intText input fields available in this container.Text input fields available in this container.getTextInputsOrBuilder(int index) Text input fields available in this container.List<? extends ContainerTextInputOrBuilder> Text input fields available in this container.getTitle()Container title/name displayed at the top.com.google.protobuf.ByteStringContainer title/name displayed at the top.intTotal number of slots in the container.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getTitle
String getTitle()Container title/name displayed at the top. Examples: "Chest", "Crafting Table", "Inventory", custom container names.
string title = 1;- Returns:
- The title.
-
getTitleBytes
com.google.protobuf.ByteString getTitleBytes()Container title/name displayed at the top. Examples: "Chest", "Crafting Table", "Inventory", custom container names.
string title = 1;- Returns:
- The bytes for title.
-
getRegionsList
List<SlotRegion> getRegionsList()Ordered list of slot regions defining the container layout. Regions are listed in rendering order (typically container slots first, then player inventory).
repeated .soulfire.v1.SlotRegion regions = 2; -
getRegions
Ordered list of slot regions defining the container layout. Regions are listed in rendering order (typically container slots first, then player inventory).
repeated .soulfire.v1.SlotRegion regions = 2; -
getRegionsCount
int getRegionsCount()Ordered list of slot regions defining the container layout. Regions are listed in rendering order (typically container slots first, then player inventory).
repeated .soulfire.v1.SlotRegion regions = 2; -
getRegionsOrBuilderList
List<? extends SlotRegionOrBuilder> getRegionsOrBuilderList()Ordered list of slot regions defining the container layout. Regions are listed in rendering order (typically container slots first, then player inventory).
repeated .soulfire.v1.SlotRegion regions = 2; -
getRegionsOrBuilder
Ordered list of slot regions defining the container layout. Regions are listed in rendering order (typically container slots first, then player inventory).
repeated .soulfire.v1.SlotRegion regions = 2; -
getTotalSlots
int getTotalSlots()Total number of slots in the container. Sum of all region slot_counts.
int32 total_slots = 3;- Returns:
- The totalSlots.
-
getButtonsList
List<ContainerButton> getButtonsList()Available action buttons for this container. Present for: stonecutter (recipes), enchanting table (3 enchant options), loom (patterns), villager trading (trade offers), beacon (effects), etc.
repeated .soulfire.v1.ContainerButton buttons = 4; -
getButtons
Available action buttons for this container. Present for: stonecutter (recipes), enchanting table (3 enchant options), loom (patterns), villager trading (trade offers), beacon (effects), etc.
repeated .soulfire.v1.ContainerButton buttons = 4; -
getButtonsCount
int getButtonsCount()Available action buttons for this container. Present for: stonecutter (recipes), enchanting table (3 enchant options), loom (patterns), villager trading (trade offers), beacon (effects), etc.
repeated .soulfire.v1.ContainerButton buttons = 4; -
getButtonsOrBuilderList
List<? extends ContainerButtonOrBuilder> getButtonsOrBuilderList()Available action buttons for this container. Present for: stonecutter (recipes), enchanting table (3 enchant options), loom (patterns), villager trading (trade offers), beacon (effects), etc.
repeated .soulfire.v1.ContainerButton buttons = 4; -
getButtonsOrBuilder
Available action buttons for this container. Present for: stonecutter (recipes), enchanting table (3 enchant options), loom (patterns), villager trading (trade offers), beacon (effects), etc.
repeated .soulfire.v1.ContainerButton buttons = 4; -
getContainerType
String getContainerType()Container type identifier for client-specific rendering. Values: "inventory", "chest", "dispenser", "hopper", "furnace", "crafting", "anvil", "enchanting", "brewing", "beacon", "shulker", "grindstone", "stonecutter", "loom", "cartography", "smithing", "merchant", "crafter", "lectern", "generic"
string container_type = 5;- Returns:
- The containerType.
-
getContainerTypeBytes
com.google.protobuf.ByteString getContainerTypeBytes()Container type identifier for client-specific rendering. Values: "inventory", "chest", "dispenser", "hopper", "furnace", "crafting", "anvil", "enchanting", "brewing", "beacon", "shulker", "grindstone", "stonecutter", "loom", "cartography", "smithing", "merchant", "crafter", "lectern", "generic"
string container_type = 5;- Returns:
- The bytes for containerType.
-
getTextInputsList
List<ContainerTextInput> getTextInputsList()Text input fields available in this container. Currently only populated for anvil menus.
repeated .soulfire.v1.ContainerTextInput text_inputs = 6; -
getTextInputs
Text input fields available in this container. Currently only populated for anvil menus.
repeated .soulfire.v1.ContainerTextInput text_inputs = 6; -
getTextInputsCount
int getTextInputsCount()Text input fields available in this container. Currently only populated for anvil menus.
repeated .soulfire.v1.ContainerTextInput text_inputs = 6; -
getTextInputsOrBuilderList
List<? extends ContainerTextInputOrBuilder> getTextInputsOrBuilderList()Text input fields available in this container. Currently only populated for anvil menus.
repeated .soulfire.v1.ContainerTextInput text_inputs = 6; -
getTextInputsOrBuilder
Text input fields available in this container. Currently only populated for anvil menus.
repeated .soulfire.v1.ContainerTextInput text_inputs = 6; -
getBookPagesList
-
getBookPages
Book pages for lectern containers. Contains all pages of the book on the lectern.
repeated .soulfire.v1.BookPage book_pages = 7; -
getBookPagesCount
int getBookPagesCount()Book pages for lectern containers. Contains all pages of the book on the lectern.
repeated .soulfire.v1.BookPage book_pages = 7; -
getBookPagesOrBuilderList
List<? extends BookPageOrBuilder> getBookPagesOrBuilderList()Book pages for lectern containers. Contains all pages of the book on the lectern.
repeated .soulfire.v1.BookPage book_pages = 7; -
getBookPagesOrBuilder
Book pages for lectern containers. Contains all pages of the book on the lectern.
repeated .soulfire.v1.BookPage book_pages = 7; -
getCurrentBookPage
int getCurrentBookPage()Current page being displayed (for lectern). Zero-indexed into book_pages.
int32 current_book_page = 8;- Returns:
- The currentBookPage.
-