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 Summary
Modifier and TypeMethodDescriptionbuild()clear()Number of columns for grid layout.clearId()Unique identifier for this region within the container.Display label for this region.Total number of slots in this region.First slot index belonging to this region.The type of region, affecting rendering behavior.intNumber of columns for grid layout.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetId()Unique identifier for this region within the container.com.google.protobuf.ByteStringUnique identifier for this region within the container.getLabel()Display label for this region.com.google.protobuf.ByteStringDisplay label for this region.intTotal number of slots in this region.intFirst slot index belonging to this region.getType()The type of region, affecting rendering behavior.intThe type of region, affecting rendering behavior.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(SlotRegion other) setColumns(int value) Number of columns for grid layout.Unique identifier for this region within the container.setIdBytes(com.google.protobuf.ByteString value) Unique identifier for this region within the container.Display label for this region.setLabelBytes(com.google.protobuf.ByteString value) Display label for this region.setSlotCount(int value) Total number of slots in this region.setStartIndex(int value) First slot index belonging to this region.setType(SlotRegionType value) The type of region, affecting rendering behavior.setTypeValue(int value) The type of region, affecting rendering behavior.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<SlotRegion.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<SlotRegion.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<SlotRegion.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SlotRegion.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SlotRegion.Builder>- Throws:
IOException
-
getId
Unique identifier for this region within the container. Examples: "container", "player_inventory", "player_hotbar", "crafting_output"
string id = 1;- Specified by:
getIdin interfaceSlotRegionOrBuilder- 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:
getIdBytesin interfaceSlotRegionOrBuilder- Returns:
- The bytes for id.
-
setId
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
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
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
Display label for this region. Examples: "Chest", "Inventory", "Hotbar", "Crafting Grid"
string label = 2;- Specified by:
getLabelin interfaceSlotRegionOrBuilder- 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:
getLabelBytesin interfaceSlotRegionOrBuilder- Returns:
- The bytes for label.
-
setLabel
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
Display label for this region. Examples: "Chest", "Inventory", "Hotbar", "Crafting Grid"
string label = 2;- Returns:
- This builder for chaining.
-
setLabelBytes
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:
getStartIndexin interfaceSlotRegionOrBuilder- Returns:
- The startIndex.
-
setStartIndex
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
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:
getSlotCountin interfaceSlotRegionOrBuilder- Returns:
- The slotCount.
-
setSlotCount
Total number of slots in this region.
int32 slot_count = 4;- Parameters:
value- The slotCount to set.- Returns:
- This builder for chaining.
-
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:
getColumnsin interfaceSlotRegionOrBuilder- Returns:
- The columns.
-
setColumns
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
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:
getTypeValuein interfaceSlotRegionOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
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
The type of region, affecting rendering behavior.
.soulfire.v1.SlotRegionType type = 6;- Specified by:
getTypein interfaceSlotRegionOrBuilder- Returns:
- The type.
-
setType
The type of region, affecting rendering behavior.
.soulfire.v1.SlotRegionType type = 6;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
The type of region, affecting rendering behavior.
.soulfire.v1.SlotRegionType type = 6;- Returns:
- This builder for chaining.
-