Class SlotRegion.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<SlotRegion.Builder>
com.google.protobuf.GeneratedMessage.Builder<SlotRegion.Builder>
com.soulfiremc.grpc.generated.SlotRegion.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, SlotRegionOrBuilder, Cloneable
Enclosing class:
SlotRegion

public static final class SlotRegion.Builder extends com.google.protobuf.GeneratedMessage.Builder<SlotRegion.Builder> implements SlotRegionOrBuilder
A group of slots that should be rendered together in the UI.
Defines the layout grid for a section of the inventory.
Protobuf type soulfire.v1.SlotRegion
  • 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.Builder<SlotRegion.Builder>
    • clear

      public SlotRegion.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<SlotRegion.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<SlotRegion.Builder>
    • getDefaultInstanceForType

      public SlotRegion getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public SlotRegion build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public SlotRegion buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public SlotRegion.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SlotRegion.Builder>
    • mergeFrom

      public SlotRegion.Builder mergeFrom(SlotRegion other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<SlotRegion.Builder>
    • mergeFrom

      public SlotRegion.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SlotRegion.Builder>
      Throws:
      IOException
    • getId

      public String getId()
      Unique identifier for this region within the container.
      Examples: "container", "player_inventory", "player_hotbar", "crafting_output"
      
      string id = 1;
      Specified by:
      getId in interface SlotRegionOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
      Unique identifier for this region within the container.
      Examples: "container", "player_inventory", "player_hotbar", "crafting_output"
      
      string id = 1;
      Specified by:
      getIdBytes in interface SlotRegionOrBuilder
      Returns:
      The bytes for id.
    • setId

      public SlotRegion.Builder setId(String value)
      Unique identifier for this region within the container.
      Examples: "container", "player_inventory", "player_hotbar", "crafting_output"
      
      string id = 1;
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public SlotRegion.Builder clearId()
      Unique identifier for this region within the container.
      Examples: "container", "player_inventory", "player_hotbar", "crafting_output"
      
      string id = 1;
      Returns:
      This builder for chaining.
    • setIdBytes

      public SlotRegion.Builder setIdBytes(com.google.protobuf.ByteString value)
      Unique identifier for this region within the container.
      Examples: "container", "player_inventory", "player_hotbar", "crafting_output"
      
      string id = 1;
      Parameters:
      value - The bytes for id to set.
      Returns:
      This builder for chaining.
    • getLabel

      public String getLabel()
      Display label for this region.
      Examples: "Chest", "Inventory", "Hotbar", "Crafting Grid"
      
      string label = 2;
      Specified by:
      getLabel in interface SlotRegionOrBuilder
      Returns:
      The label.
    • getLabelBytes

      public com.google.protobuf.ByteString getLabelBytes()
      Display label for this region.
      Examples: "Chest", "Inventory", "Hotbar", "Crafting Grid"
      
      string label = 2;
      Specified by:
      getLabelBytes in interface SlotRegionOrBuilder
      Returns:
      The bytes for label.
    • setLabel

      public SlotRegion.Builder setLabel(String value)
      Display label for this region.
      Examples: "Chest", "Inventory", "Hotbar", "Crafting Grid"
      
      string label = 2;
      Parameters:
      value - The label to set.
      Returns:
      This builder for chaining.
    • clearLabel

      public SlotRegion.Builder clearLabel()
      Display label for this region.
      Examples: "Chest", "Inventory", "Hotbar", "Crafting Grid"
      
      string label = 2;
      Returns:
      This builder for chaining.
    • setLabelBytes

      public SlotRegion.Builder setLabelBytes(com.google.protobuf.ByteString value)
      Display label for this region.
      Examples: "Chest", "Inventory", "Hotbar", "Crafting Grid"
      
      string label = 2;
      Parameters:
      value - The bytes for label to set.
      Returns:
      This builder for chaining.
    • getStartIndex

      public int getStartIndex()
      First slot index belonging to this region.
      Slots are numbered sequentially from 0 across all regions.
      
      int32 start_index = 3;
      Specified by:
      getStartIndex in interface SlotRegionOrBuilder
      Returns:
      The startIndex.
    • setStartIndex

      public SlotRegion.Builder setStartIndex(int value)
      First slot index belonging to this region.
      Slots are numbered sequentially from 0 across all regions.
      
      int32 start_index = 3;
      Parameters:
      value - The startIndex to set.
      Returns:
      This builder for chaining.
    • clearStartIndex

      public SlotRegion.Builder clearStartIndex()
      First slot index belonging to this region.
      Slots are numbered sequentially from 0 across all regions.
      
      int32 start_index = 3;
      Returns:
      This builder for chaining.
    • getSlotCount

      public int getSlotCount()
      Total number of slots in this region.
      
      int32 slot_count = 4;
      Specified by:
      getSlotCount in interface SlotRegionOrBuilder
      Returns:
      The slotCount.
    • setSlotCount

      public SlotRegion.Builder setSlotCount(int value)
      Total number of slots in this region.
      
      int32 slot_count = 4;
      Parameters:
      value - The slotCount to set.
      Returns:
      This builder for chaining.
    • clearSlotCount

      public SlotRegion.Builder clearSlotCount()
      Total number of slots in this region.
      
      int32 slot_count = 4;
      Returns:
      This builder for chaining.
    • getColumns

      public int getColumns()
      Number of columns for grid layout.
      Common values: 9 (standard inventory width), 3 (dispenser), 1 (armor column)
      
      int32 columns = 5;
      Specified by:
      getColumns in interface SlotRegionOrBuilder
      Returns:
      The columns.
    • setColumns

      public SlotRegion.Builder setColumns(int value)
      Number of columns for grid layout.
      Common values: 9 (standard inventory width), 3 (dispenser), 1 (armor column)
      
      int32 columns = 5;
      Parameters:
      value - The columns to set.
      Returns:
      This builder for chaining.
    • clearColumns

      public SlotRegion.Builder clearColumns()
      Number of columns for grid layout.
      Common values: 9 (standard inventory width), 3 (dispenser), 1 (armor column)
      
      int32 columns = 5;
      Returns:
      This builder for chaining.
    • getTypeValue

      public int getTypeValue()
      The type of region, affecting rendering behavior.
      
      .soulfire.v1.SlotRegionType type = 6;
      Specified by:
      getTypeValue in interface SlotRegionOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      public SlotRegion.Builder setTypeValue(int value)
      The type of region, affecting rendering behavior.
      
      .soulfire.v1.SlotRegionType type = 6;
      Parameters:
      value - The enum numeric value on the wire for type to set.
      Returns:
      This builder for chaining.
    • getType

      public SlotRegionType getType()
      The type of region, affecting rendering behavior.
      
      .soulfire.v1.SlotRegionType type = 6;
      Specified by:
      getType in interface SlotRegionOrBuilder
      Returns:
      The type.
    • setType

      public SlotRegion.Builder setType(SlotRegionType value)
      The type of region, affecting rendering behavior.
      
      .soulfire.v1.SlotRegionType type = 6;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public SlotRegion.Builder clearType()
      The type of region, affecting rendering behavior.
      
      .soulfire.v1.SlotRegionType type = 6;
      Returns:
      This builder for chaining.