Class BotInventoryClickRequest.Builder

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

public static final class BotInventoryClickRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<BotInventoryClickRequest.Builder> implements BotInventoryClickRequestOrBuilder
Request to perform a click action on an inventory slot.
Simulates the various mouse click interactions available in Minecraft inventory UIs.
Protobuf type soulfire.v1.BotInventoryClickRequest
  • 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<BotInventoryClickRequest.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<BotInventoryClickRequest.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<BotInventoryClickRequest.Builder>
    • getDefaultInstanceForType

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

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

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

      public BotInventoryClickRequest.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<BotInventoryClickRequest.Builder>
    • mergeFrom

    • isInitialized

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

      public BotInventoryClickRequest.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<BotInventoryClickRequest.Builder>
      Throws:
      IOException
    • getInstanceId

      public String getInstanceId()
      The UUID of the SoulFire instance containing the bot.
      
      string instance_id = 1;
      Specified by:
      getInstanceId in interface BotInventoryClickRequestOrBuilder
      Returns:
      The instanceId.
    • getInstanceIdBytes

      public com.google.protobuf.ByteString getInstanceIdBytes()
      The UUID of the SoulFire instance containing the bot.
      
      string instance_id = 1;
      Specified by:
      getInstanceIdBytes in interface BotInventoryClickRequestOrBuilder
      Returns:
      The bytes for instanceId.
    • setInstanceId

      public BotInventoryClickRequest.Builder setInstanceId(String value)
      The UUID of the SoulFire instance containing the bot.
      
      string instance_id = 1;
      Parameters:
      value - The instanceId to set.
      Returns:
      This builder for chaining.
    • clearInstanceId

      public BotInventoryClickRequest.Builder clearInstanceId()
      The UUID of the SoulFire instance containing the bot.
      
      string instance_id = 1;
      Returns:
      This builder for chaining.
    • setInstanceIdBytes

      public BotInventoryClickRequest.Builder setInstanceIdBytes(com.google.protobuf.ByteString value)
      The UUID of the SoulFire instance containing the bot.
      
      string instance_id = 1;
      Parameters:
      value - The bytes for instanceId to set.
      Returns:
      This builder for chaining.
    • getBotId

      public String getBotId()
      The profile UUID of the bot performing the inventory action.
      
      string bot_id = 2;
      Specified by:
      getBotId in interface BotInventoryClickRequestOrBuilder
      Returns:
      The botId.
    • getBotIdBytes

      public com.google.protobuf.ByteString getBotIdBytes()
      The profile UUID of the bot performing the inventory action.
      
      string bot_id = 2;
      Specified by:
      getBotIdBytes in interface BotInventoryClickRequestOrBuilder
      Returns:
      The bytes for botId.
    • setBotId

      public BotInventoryClickRequest.Builder setBotId(String value)
      The profile UUID of the bot performing the inventory action.
      
      string bot_id = 2;
      Parameters:
      value - The botId to set.
      Returns:
      This builder for chaining.
    • clearBotId

      public BotInventoryClickRequest.Builder clearBotId()
      The profile UUID of the bot performing the inventory action.
      
      string bot_id = 2;
      Returns:
      This builder for chaining.
    • setBotIdBytes

      public BotInventoryClickRequest.Builder setBotIdBytes(com.google.protobuf.ByteString value)
      The profile UUID of the bot performing the inventory action.
      
      string bot_id = 2;
      Parameters:
      value - The bytes for botId to set.
      Returns:
      This builder for chaining.
    • getSlot

      public int getSlot()
      The slot index to click.
      Valid range depends on the currently open container.
      Special value: -999 for clicking outside the inventory (dropping items).
      
      int32 slot = 3;
      Specified by:
      getSlot in interface BotInventoryClickRequestOrBuilder
      Returns:
      The slot.
    • setSlot

      public BotInventoryClickRequest.Builder setSlot(int value)
      The slot index to click.
      Valid range depends on the currently open container.
      Special value: -999 for clicking outside the inventory (dropping items).
      
      int32 slot = 3;
      Parameters:
      value - The slot to set.
      Returns:
      This builder for chaining.
    • clearSlot

      The slot index to click.
      Valid range depends on the currently open container.
      Special value: -999 for clicking outside the inventory (dropping items).
      
      int32 slot = 3;
      Returns:
      This builder for chaining.
    • getClickTypeValue

      public int getClickTypeValue()
      The type of click to perform.
      Different click types have different effects on items.
      
      .soulfire.v1.ClickType click_type = 4;
      Specified by:
      getClickTypeValue in interface BotInventoryClickRequestOrBuilder
      Returns:
      The enum numeric value on the wire for clickType.
    • setClickTypeValue

      public BotInventoryClickRequest.Builder setClickTypeValue(int value)
      The type of click to perform.
      Different click types have different effects on items.
      
      .soulfire.v1.ClickType click_type = 4;
      Parameters:
      value - The enum numeric value on the wire for clickType to set.
      Returns:
      This builder for chaining.
    • getClickType

      public ClickType getClickType()
      The type of click to perform.
      Different click types have different effects on items.
      
      .soulfire.v1.ClickType click_type = 4;
      Specified by:
      getClickType in interface BotInventoryClickRequestOrBuilder
      Returns:
      The clickType.
    • setClickType

      public BotInventoryClickRequest.Builder setClickType(ClickType value)
      The type of click to perform.
      Different click types have different effects on items.
      
      .soulfire.v1.ClickType click_type = 4;
      Parameters:
      value - The clickType to set.
      Returns:
      This builder for chaining.
    • clearClickType

      public BotInventoryClickRequest.Builder clearClickType()
      The type of click to perform.
      Different click types have different effects on items.
      
      .soulfire.v1.ClickType click_type = 4;
      Returns:
      This builder for chaining.
    • getHotbarSlot

      public int getHotbarSlot()
      For SWAP_HOTBAR click type: which hotbar slot to swap with.
      Range: 0-8 (corresponding to hotbar slots 1-9).
      Ignored for other click types.
      
      int32 hotbar_slot = 5;
      Specified by:
      getHotbarSlot in interface BotInventoryClickRequestOrBuilder
      Returns:
      The hotbarSlot.
    • setHotbarSlot

      public BotInventoryClickRequest.Builder setHotbarSlot(int value)
      For SWAP_HOTBAR click type: which hotbar slot to swap with.
      Range: 0-8 (corresponding to hotbar slots 1-9).
      Ignored for other click types.
      
      int32 hotbar_slot = 5;
      Parameters:
      value - The hotbarSlot to set.
      Returns:
      This builder for chaining.
    • clearHotbarSlot

      public BotInventoryClickRequest.Builder clearHotbarSlot()
      For SWAP_HOTBAR click type: which hotbar slot to swap with.
      Range: 0-8 (corresponding to hotbar slots 1-9).
      Ignored for other click types.
      
      int32 hotbar_slot = 5;
      Returns:
      This builder for chaining.