Class BotInventoryStateResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BotInventoryStateResponse.Builder>
com.google.protobuf.GeneratedMessage.Builder<BotInventoryStateResponse.Builder>
com.soulfiremc.grpc.generated.BotInventoryStateResponse.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, BotInventoryStateResponseOrBuilder, Cloneable
- Enclosing class:
BotInventoryStateResponse
public static final class BotInventoryStateResponse.Builder
extends com.google.protobuf.GeneratedMessage.Builder<BotInventoryStateResponse.Builder>
implements BotInventoryStateResponseOrBuilder
Response containing the current inventory/container state.Protobuf type
soulfire.v1.BotInventoryStateResponse-
Method Summary
Modifier and TypeMethodDescriptionaddAllSlots(Iterable<? extends InventorySlot> values) All slots containing items (empty slots are omitted).addSlots(int index, InventorySlot value) All slots containing items (empty slots are omitted).addSlots(int index, InventorySlot.Builder builderForValue) All slots containing items (empty slots are omitted).addSlots(InventorySlot value) All slots containing items (empty slots are omitted).addSlots(InventorySlot.Builder builderForValue) All slots containing items (empty slots are omitted).All slots containing items (empty slots are omitted).addSlotsBuilder(int index) All slots containing items (empty slots are omitted).build()clear()Item currently held on the cursor (being moved).Layout information describing the container structure.Currently selected hotbar slot index (0-8).All slots containing items (empty slots are omitted).Item currently held on the cursor (being moved).Item currently held on the cursor (being moved).Item currently held on the cursor (being moved).static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorLayout information describing the container structure.Layout information describing the container structure.Layout information describing the container structure.intCurrently selected hotbar slot index (0-8).getSlots(int index) All slots containing items (empty slots are omitted).getSlotsBuilder(int index) All slots containing items (empty slots are omitted).All slots containing items (empty slots are omitted).intAll slots containing items (empty slots are omitted).All slots containing items (empty slots are omitted).getSlotsOrBuilder(int index) All slots containing items (empty slots are omitted).List<? extends InventorySlotOrBuilder> All slots containing items (empty slots are omitted).booleanItem currently held on the cursor (being moved).booleanLayout information describing the container structure.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeCarriedItem(InventorySlot value) Item currently held on the cursor (being moved).mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeLayout(ContainerLayout value) Layout information describing the container structure.removeSlots(int index) All slots containing items (empty slots are omitted).setCarriedItem(InventorySlot value) Item currently held on the cursor (being moved).setCarriedItem(InventorySlot.Builder builderForValue) Item currently held on the cursor (being moved).setLayout(ContainerLayout value) Layout information describing the container structure.setLayout(ContainerLayout.Builder builderForValue) Layout information describing the container structure.setSelectedHotbarSlot(int value) Currently selected hotbar slot index (0-8).setSlots(int index, InventorySlot value) All slots containing items (empty slots are omitted).setSlots(int index, InventorySlot.Builder builderForValue) All slots containing items (empty slots are omitted).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<BotInventoryStateResponse.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<BotInventoryStateResponse.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<BotInventoryStateResponse.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<BotInventoryStateResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<BotInventoryStateResponse.Builder>
-
mergeFrom
public BotInventoryStateResponse.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<BotInventoryStateResponse.Builder>- Throws:
IOException
-
hasLayout
public boolean hasLayout()Layout information describing the container structure.
.soulfire.v1.ContainerLayout layout = 1;- Specified by:
hasLayoutin interfaceBotInventoryStateResponseOrBuilder- Returns:
- Whether the layout field is set.
-
getLayout
Layout information describing the container structure.
.soulfire.v1.ContainerLayout layout = 1;- Specified by:
getLayoutin interfaceBotInventoryStateResponseOrBuilder- Returns:
- The layout.
-
setLayout
Layout information describing the container structure.
.soulfire.v1.ContainerLayout layout = 1; -
setLayout
Layout information describing the container structure.
.soulfire.v1.ContainerLayout layout = 1; -
mergeLayout
Layout information describing the container structure.
.soulfire.v1.ContainerLayout layout = 1; -
clearLayout
Layout information describing the container structure.
.soulfire.v1.ContainerLayout layout = 1; -
getLayoutBuilder
Layout information describing the container structure.
.soulfire.v1.ContainerLayout layout = 1; -
getLayoutOrBuilder
Layout information describing the container structure.
.soulfire.v1.ContainerLayout layout = 1;- Specified by:
getLayoutOrBuilderin interfaceBotInventoryStateResponseOrBuilder
-
getSlotsList
All slots containing items (empty slots are omitted).
repeated .soulfire.v1.InventorySlot slots = 2;- Specified by:
getSlotsListin interfaceBotInventoryStateResponseOrBuilder
-
getSlotsCount
public int getSlotsCount()All slots containing items (empty slots are omitted).
repeated .soulfire.v1.InventorySlot slots = 2;- Specified by:
getSlotsCountin interfaceBotInventoryStateResponseOrBuilder
-
getSlots
All slots containing items (empty slots are omitted).
repeated .soulfire.v1.InventorySlot slots = 2;- Specified by:
getSlotsin interfaceBotInventoryStateResponseOrBuilder
-
setSlots
All slots containing items (empty slots are omitted).
repeated .soulfire.v1.InventorySlot slots = 2; -
setSlots
All slots containing items (empty slots are omitted).
repeated .soulfire.v1.InventorySlot slots = 2; -
addSlots
All slots containing items (empty slots are omitted).
repeated .soulfire.v1.InventorySlot slots = 2; -
addSlots
All slots containing items (empty slots are omitted).
repeated .soulfire.v1.InventorySlot slots = 2; -
addSlots
All slots containing items (empty slots are omitted).
repeated .soulfire.v1.InventorySlot slots = 2; -
addSlots
All slots containing items (empty slots are omitted).
repeated .soulfire.v1.InventorySlot slots = 2; -
addAllSlots
All slots containing items (empty slots are omitted).
repeated .soulfire.v1.InventorySlot slots = 2; -
clearSlots
All slots containing items (empty slots are omitted).
repeated .soulfire.v1.InventorySlot slots = 2; -
removeSlots
All slots containing items (empty slots are omitted).
repeated .soulfire.v1.InventorySlot slots = 2; -
getSlotsBuilder
All slots containing items (empty slots are omitted).
repeated .soulfire.v1.InventorySlot slots = 2; -
getSlotsOrBuilder
All slots containing items (empty slots are omitted).
repeated .soulfire.v1.InventorySlot slots = 2;- Specified by:
getSlotsOrBuilderin interfaceBotInventoryStateResponseOrBuilder
-
getSlotsOrBuilderList
All slots containing items (empty slots are omitted).
repeated .soulfire.v1.InventorySlot slots = 2;- Specified by:
getSlotsOrBuilderListin interfaceBotInventoryStateResponseOrBuilder
-
addSlotsBuilder
All slots containing items (empty slots are omitted).
repeated .soulfire.v1.InventorySlot slots = 2; -
addSlotsBuilder
All slots containing items (empty slots are omitted).
repeated .soulfire.v1.InventorySlot slots = 2; -
getSlotsBuilderList
All slots containing items (empty slots are omitted).
repeated .soulfire.v1.InventorySlot slots = 2; -
hasCarriedItem
public boolean hasCarriedItem()Item currently held on the cursor (being moved). Absent if cursor is empty.
optional .soulfire.v1.InventorySlot carried_item = 3;- Specified by:
hasCarriedItemin interfaceBotInventoryStateResponseOrBuilder- Returns:
- Whether the carriedItem field is set.
-
getCarriedItem
Item currently held on the cursor (being moved). Absent if cursor is empty.
optional .soulfire.v1.InventorySlot carried_item = 3;- Specified by:
getCarriedItemin interfaceBotInventoryStateResponseOrBuilder- Returns:
- The carriedItem.
-
setCarriedItem
Item currently held on the cursor (being moved). Absent if cursor is empty.
optional .soulfire.v1.InventorySlot carried_item = 3; -
setCarriedItem
Item currently held on the cursor (being moved). Absent if cursor is empty.
optional .soulfire.v1.InventorySlot carried_item = 3; -
mergeCarriedItem
Item currently held on the cursor (being moved). Absent if cursor is empty.
optional .soulfire.v1.InventorySlot carried_item = 3; -
clearCarriedItem
Item currently held on the cursor (being moved). Absent if cursor is empty.
optional .soulfire.v1.InventorySlot carried_item = 3; -
getCarriedItemBuilder
Item currently held on the cursor (being moved). Absent if cursor is empty.
optional .soulfire.v1.InventorySlot carried_item = 3; -
getCarriedItemOrBuilder
Item currently held on the cursor (being moved). Absent if cursor is empty.
optional .soulfire.v1.InventorySlot carried_item = 3;- Specified by:
getCarriedItemOrBuilderin interfaceBotInventoryStateResponseOrBuilder
-
getSelectedHotbarSlot
public int getSelectedHotbarSlot()Currently selected hotbar slot index (0-8).
int32 selected_hotbar_slot = 4;- Specified by:
getSelectedHotbarSlotin interfaceBotInventoryStateResponseOrBuilder- Returns:
- The selectedHotbarSlot.
-
setSelectedHotbarSlot
Currently selected hotbar slot index (0-8).
int32 selected_hotbar_slot = 4;- Parameters:
value- The selectedHotbarSlot to set.- Returns:
- This builder for chaining.
-
clearSelectedHotbarSlot
Currently selected hotbar slot index (0-8).
int32 selected_hotbar_slot = 4;- Returns:
- This builder for chaining.
-