Class ContainerLayout

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.soulfiremc.grpc.generated.ContainerLayout
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ContainerLayoutOrBuilder, Serializable

@Generated public final class ContainerLayout extends com.google.protobuf.GeneratedMessage implements ContainerLayoutOrBuilder
Complete layout description for an open container menu.
Provides all information needed to render the container UI.
Protobuf type soulfire.v1.ContainerLayout
See Also:
  • Field Details

    • TITLE_FIELD_NUMBER

      public static final int TITLE_FIELD_NUMBER
      See Also:
    • REGIONS_FIELD_NUMBER

      public static final int REGIONS_FIELD_NUMBER
      See Also:
    • TOTAL_SLOTS_FIELD_NUMBER

      public static final int TOTAL_SLOTS_FIELD_NUMBER
      See Also:
    • BUTTONS_FIELD_NUMBER

      public static final int BUTTONS_FIELD_NUMBER
      See Also:
    • CONTAINER_TYPE_FIELD_NUMBER

      public static final int CONTAINER_TYPE_FIELD_NUMBER
      See Also:
    • TEXT_INPUTS_FIELD_NUMBER

      public static final int TEXT_INPUTS_FIELD_NUMBER
      See Also:
    • BOOK_PAGES_FIELD_NUMBER

      public static final int BOOK_PAGES_FIELD_NUMBER
      See Also:
    • CURRENT_BOOK_PAGE_FIELD_NUMBER

      public static final int CURRENT_BOOK_PAGE_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getTitle

      public String getTitle()
      Container title/name displayed at the top.
      Examples: "Chest", "Crafting Table", "Inventory", custom container names.
      
      string title = 1;
      Specified by:
      getTitle in interface ContainerLayoutOrBuilder
      Returns:
      The title.
    • getTitleBytes

      public com.google.protobuf.ByteString getTitleBytes()
      Container title/name displayed at the top.
      Examples: "Chest", "Crafting Table", "Inventory", custom container names.
      
      string title = 1;
      Specified by:
      getTitleBytes in interface ContainerLayoutOrBuilder
      Returns:
      The bytes for title.
    • getRegionsList

      public 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;
      Specified by:
      getRegionsList in interface ContainerLayoutOrBuilder
    • getRegionsOrBuilderList

      public 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;
      Specified by:
      getRegionsOrBuilderList in interface ContainerLayoutOrBuilder
    • getRegionsCount

      public 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;
      Specified by:
      getRegionsCount in interface ContainerLayoutOrBuilder
    • getRegions

      public SlotRegion getRegions(int index)
      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;
      Specified by:
      getRegions in interface ContainerLayoutOrBuilder
    • getRegionsOrBuilder

      public SlotRegionOrBuilder getRegionsOrBuilder(int index)
      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;
      Specified by:
      getRegionsOrBuilder in interface ContainerLayoutOrBuilder
    • getTotalSlots

      public int getTotalSlots()
      Total number of slots in the container.
      Sum of all region slot_counts.
      
      int32 total_slots = 3;
      Specified by:
      getTotalSlots in interface ContainerLayoutOrBuilder
      Returns:
      The totalSlots.
    • getButtonsList

      public 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;
      Specified by:
      getButtonsList in interface ContainerLayoutOrBuilder
    • getButtonsOrBuilderList

      public 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;
      Specified by:
      getButtonsOrBuilderList in interface ContainerLayoutOrBuilder
    • getButtonsCount

      public 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;
      Specified by:
      getButtonsCount in interface ContainerLayoutOrBuilder
    • getButtons

      public ContainerButton getButtons(int index)
      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;
      Specified by:
      getButtons in interface ContainerLayoutOrBuilder
    • getButtonsOrBuilder

      public ContainerButtonOrBuilder getButtonsOrBuilder(int index)
      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;
      Specified by:
      getButtonsOrBuilder in interface ContainerLayoutOrBuilder
    • getContainerType

      public 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;
      Specified by:
      getContainerType in interface ContainerLayoutOrBuilder
      Returns:
      The containerType.
    • getContainerTypeBytes

      public 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;
      Specified by:
      getContainerTypeBytes in interface ContainerLayoutOrBuilder
      Returns:
      The bytes for containerType.
    • getTextInputsList

      public List<ContainerTextInput> getTextInputsList()
      Text input fields available in this container.
      Currently only populated for anvil menus.
      
      repeated .soulfire.v1.ContainerTextInput text_inputs = 6;
      Specified by:
      getTextInputsList in interface ContainerLayoutOrBuilder
    • getTextInputsOrBuilderList

      public List<? extends ContainerTextInputOrBuilder> getTextInputsOrBuilderList()
      Text input fields available in this container.
      Currently only populated for anvil menus.
      
      repeated .soulfire.v1.ContainerTextInput text_inputs = 6;
      Specified by:
      getTextInputsOrBuilderList in interface ContainerLayoutOrBuilder
    • getTextInputsCount

      public int getTextInputsCount()
      Text input fields available in this container.
      Currently only populated for anvil menus.
      
      repeated .soulfire.v1.ContainerTextInput text_inputs = 6;
      Specified by:
      getTextInputsCount in interface ContainerLayoutOrBuilder
    • getTextInputs

      public ContainerTextInput getTextInputs(int index)
      Text input fields available in this container.
      Currently only populated for anvil menus.
      
      repeated .soulfire.v1.ContainerTextInput text_inputs = 6;
      Specified by:
      getTextInputs in interface ContainerLayoutOrBuilder
    • getTextInputsOrBuilder

      public ContainerTextInputOrBuilder getTextInputsOrBuilder(int index)
      Text input fields available in this container.
      Currently only populated for anvil menus.
      
      repeated .soulfire.v1.ContainerTextInput text_inputs = 6;
      Specified by:
      getTextInputsOrBuilder in interface ContainerLayoutOrBuilder
    • getBookPagesList

      public List<BookPage> getBookPagesList()
      Book pages for lectern containers.
      Contains all pages of the book on the lectern.
      
      repeated .soulfire.v1.BookPage book_pages = 7;
      Specified by:
      getBookPagesList in interface ContainerLayoutOrBuilder
    • getBookPagesOrBuilderList

      public 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;
      Specified by:
      getBookPagesOrBuilderList in interface ContainerLayoutOrBuilder
    • getBookPagesCount

      public int getBookPagesCount()
      Book pages for lectern containers.
      Contains all pages of the book on the lectern.
      
      repeated .soulfire.v1.BookPage book_pages = 7;
      Specified by:
      getBookPagesCount in interface ContainerLayoutOrBuilder
    • getBookPages

      public BookPage getBookPages(int index)
      Book pages for lectern containers.
      Contains all pages of the book on the lectern.
      
      repeated .soulfire.v1.BookPage book_pages = 7;
      Specified by:
      getBookPages in interface ContainerLayoutOrBuilder
    • getBookPagesOrBuilder

      public BookPageOrBuilder getBookPagesOrBuilder(int index)
      Book pages for lectern containers.
      Contains all pages of the book on the lectern.
      
      repeated .soulfire.v1.BookPage book_pages = 7;
      Specified by:
      getBookPagesOrBuilder in interface ContainerLayoutOrBuilder
    • getCurrentBookPage

      public int getCurrentBookPage()
      Current page being displayed (for lectern).
      Zero-indexed into book_pages.
      
      int32 current_book_page = 8;
      Specified by:
      getCurrentBookPage in interface ContainerLayoutOrBuilder
      Returns:
      The currentBookPage.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static ContainerLayout parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ContainerLayout parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ContainerLayout parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ContainerLayout parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ContainerLayout parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ContainerLayout parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ContainerLayout parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ContainerLayout parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ContainerLayout parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ContainerLayout parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ContainerLayout parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ContainerLayout parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public ContainerLayout.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static ContainerLayout.Builder newBuilder()
    • newBuilder

      public static ContainerLayout.Builder newBuilder(ContainerLayout prototype)
    • toBuilder

      public ContainerLayout.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected ContainerLayout.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static ContainerLayout getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<ContainerLayout> parser()
    • getParserForType

      public com.google.protobuf.Parser<ContainerLayout> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public ContainerLayout getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder