Class BotLiveState

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

@Generated public final class BotLiveState extends com.google.protobuf.GeneratedMessage implements BotLiveStateOrBuilder
Real-time state of a connected bot.
Contains position, health, inventory, and other live game data.
Protobuf type soulfire.v1.BotLiveState
See Also:
  • Field Details

    • X_FIELD_NUMBER

      public static final int X_FIELD_NUMBER
      See Also:
    • Y_FIELD_NUMBER

      public static final int Y_FIELD_NUMBER
      See Also:
    • Z_FIELD_NUMBER

      public static final int Z_FIELD_NUMBER
      See Also:
    • XROT_FIELD_NUMBER

      public static final int XROT_FIELD_NUMBER
      See Also:
    • YROT_FIELD_NUMBER

      public static final int YROT_FIELD_NUMBER
      See Also:
    • HEALTH_FIELD_NUMBER

      public static final int HEALTH_FIELD_NUMBER
      See Also:
    • MAX_HEALTH_FIELD_NUMBER

      public static final int MAX_HEALTH_FIELD_NUMBER
      See Also:
    • FOOD_LEVEL_FIELD_NUMBER

      public static final int FOOD_LEVEL_FIELD_NUMBER
      See Also:
    • SATURATION_LEVEL_FIELD_NUMBER

      public static final int SATURATION_LEVEL_FIELD_NUMBER
      See Also:
    • INVENTORY_FIELD_NUMBER

      public static final int INVENTORY_FIELD_NUMBER
      See Also:
    • SELECTED_HOTBAR_SLOT_FIELD_NUMBER

      public static final int SELECTED_HOTBAR_SLOT_FIELD_NUMBER
      See Also:
    • DIMENSION_FIELD_NUMBER

      public static final int DIMENSION_FIELD_NUMBER
      See Also:
    • EXPERIENCE_LEVEL_FIELD_NUMBER

      public static final int EXPERIENCE_LEVEL_FIELD_NUMBER
      See Also:
    • EXPERIENCE_PROGRESS_FIELD_NUMBER

      public static final int EXPERIENCE_PROGRESS_FIELD_NUMBER
      See Also:
    • SKIN_TEXTURE_HASH_FIELD_NUMBER

      public static final int SKIN_TEXTURE_HASH_FIELD_NUMBER
      See Also:
    • GAME_MODE_FIELD_NUMBER

      public static final int GAME_MODE_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
    • getX

      public double getX()
      X coordinate in the Minecraft world (east/west axis).
      East is positive, West is negative.
      
      double x = 1;
      Specified by:
      getX in interface BotLiveStateOrBuilder
      Returns:
      The x.
    • getY

      public double getY()
      Y coordinate in the Minecraft world (vertical axis).
      Increases upward. Sea level is typically around 63.
      
      double y = 2;
      Specified by:
      getY in interface BotLiveStateOrBuilder
      Returns:
      The y.
    • getZ

      public double getZ()
      Z coordinate in the Minecraft world (north/south axis).
      South is positive, North is negative.
      
      double z = 3;
      Specified by:
      getZ in interface BotLiveStateOrBuilder
      Returns:
      The z.
    • getXRot

      public float getXRot()
      Vertical rotation (pitch) in degrees.
      Range: -90 (looking straight up) to 90 (looking straight down).
      0 is looking at the horizon.
      
      float xRot = 4;
      Specified by:
      getXRot in interface BotLiveStateOrBuilder
      Returns:
      The xRot.
    • getYRot

      public float getYRot()
      Horizontal rotation (yaw) in degrees.
      Range: -180 to 180. 0 = South, 90 = West, -90 = East, +/-180 = North.
      
      float yRot = 5;
      Specified by:
      getYRot in interface BotLiveStateOrBuilder
      Returns:
      The yRot.
    • getHealth

      public float getHealth()
      Current health points.
      Range: 0 (dead) to max_health. 1 point = half a heart in the UI.
      
      float health = 6;
      Specified by:
      getHealth in interface BotLiveStateOrBuilder
      Returns:
      The health.
    • getMaxHealth

      public float getMaxHealth()
      Maximum health points the player can have.
      Default is 20 (10 hearts). Can be modified by effects or attributes.
      
      float max_health = 7;
      Specified by:
      getMaxHealth in interface BotLiveStateOrBuilder
      Returns:
      The maxHealth.
    • getFoodLevel

      public int getFoodLevel()
      Current hunger/food level.
      Range: 0 (starving) to 20 (full). 1 point = half a drumstick in the UI.
      Below 6, the player cannot sprint. At 0, health starts draining.
      
      int32 food_level = 8;
      Specified by:
      getFoodLevel in interface BotLiveStateOrBuilder
      Returns:
      The foodLevel.
    • getSaturationLevel

      public float getSaturationLevel()
      Current saturation level.
      Range: 0 to food_level. Acts as a buffer before hunger depletes.
      When saturation is above 0, hunger bar doesn't decrease while performing actions.
      
      float saturation_level = 9;
      Specified by:
      getSaturationLevel in interface BotLiveStateOrBuilder
      Returns:
      The saturationLevel.
    • getInventoryList

      public List<InventorySlot> getInventoryList()
      Inventory slots containing items (only non-empty slots are included).
      For list views (GetBotList), this will be empty for performance.
      For detail views (GetBotInfo), contains all non-empty slots from the player inventory.
      
      repeated .soulfire.v1.InventorySlot inventory = 10;
      Specified by:
      getInventoryList in interface BotLiveStateOrBuilder
    • getInventoryOrBuilderList

      public List<? extends InventorySlotOrBuilder> getInventoryOrBuilderList()
      Inventory slots containing items (only non-empty slots are included).
      For list views (GetBotList), this will be empty for performance.
      For detail views (GetBotInfo), contains all non-empty slots from the player inventory.
      
      repeated .soulfire.v1.InventorySlot inventory = 10;
      Specified by:
      getInventoryOrBuilderList in interface BotLiveStateOrBuilder
    • getInventoryCount

      public int getInventoryCount()
      Inventory slots containing items (only non-empty slots are included).
      For list views (GetBotList), this will be empty for performance.
      For detail views (GetBotInfo), contains all non-empty slots from the player inventory.
      
      repeated .soulfire.v1.InventorySlot inventory = 10;
      Specified by:
      getInventoryCount in interface BotLiveStateOrBuilder
    • getInventory

      public InventorySlot getInventory(int index)
      Inventory slots containing items (only non-empty slots are included).
      For list views (GetBotList), this will be empty for performance.
      For detail views (GetBotInfo), contains all non-empty slots from the player inventory.
      
      repeated .soulfire.v1.InventorySlot inventory = 10;
      Specified by:
      getInventory in interface BotLiveStateOrBuilder
    • getInventoryOrBuilder

      public InventorySlotOrBuilder getInventoryOrBuilder(int index)
      Inventory slots containing items (only non-empty slots are included).
      For list views (GetBotList), this will be empty for performance.
      For detail views (GetBotInfo), contains all non-empty slots from the player inventory.
      
      repeated .soulfire.v1.InventorySlot inventory = 10;
      Specified by:
      getInventoryOrBuilder in interface BotLiveStateOrBuilder
    • getSelectedHotbarSlot

      public int getSelectedHotbarSlot()
      Currently selected hotbar slot index.
      Range: 0 to 8, corresponding to hotbar slots 1-9 in the UI.
      
      int32 selected_hotbar_slot = 11;
      Specified by:
      getSelectedHotbarSlot in interface BotLiveStateOrBuilder
      Returns:
      The selectedHotbarSlot.
    • getDimension

      public String getDimension()
      The dimension the player is currently in.
      Format: namespaced identifier (e.g., "minecraft:overworld", "minecraft:the_nether", "minecraft:the_end").
      Custom dimensions will use their server-defined namespace.
      
      string dimension = 12;
      Specified by:
      getDimension in interface BotLiveStateOrBuilder
      Returns:
      The dimension.
    • getDimensionBytes

      public com.google.protobuf.ByteString getDimensionBytes()
      The dimension the player is currently in.
      Format: namespaced identifier (e.g., "minecraft:overworld", "minecraft:the_nether", "minecraft:the_end").
      Custom dimensions will use their server-defined namespace.
      
      string dimension = 12;
      Specified by:
      getDimensionBytes in interface BotLiveStateOrBuilder
      Returns:
      The bytes for dimension.
    • getExperienceLevel

      public int getExperienceLevel()
      Player's current experience level (the number shown on the XP bar).
      Range: 0 to theoretically unlimited (typically 0-30+ for enchanting).
      
      int32 experience_level = 13;
      Specified by:
      getExperienceLevel in interface BotLiveStateOrBuilder
      Returns:
      The experienceLevel.
    • getExperienceProgress

      public float getExperienceProgress()
      Progress towards the next experience level.
      Range: 0.0 (just reached current level) to 1.0 (about to level up).
      
      float experience_progress = 14;
      Specified by:
      getExperienceProgress in interface BotLiveStateOrBuilder
      Returns:
      The experienceProgress.
    • hasSkinTextureHash

      public boolean hasSkinTextureHash()
      Skin texture hash for avatar rendering.
      This is the hash extracted from the texture URL in the player's game profile.
      Can be used with services like mc-heads.net: https://mc-heads.net/body/<hash>
      Will be absent if the player has no custom skin or skin data is unavailable.
      
      optional string skin_texture_hash = 15;
      Specified by:
      hasSkinTextureHash in interface BotLiveStateOrBuilder
      Returns:
      Whether the skinTextureHash field is set.
    • getSkinTextureHash

      public String getSkinTextureHash()
      Skin texture hash for avatar rendering.
      This is the hash extracted from the texture URL in the player's game profile.
      Can be used with services like mc-heads.net: https://mc-heads.net/body/<hash>
      Will be absent if the player has no custom skin or skin data is unavailable.
      
      optional string skin_texture_hash = 15;
      Specified by:
      getSkinTextureHash in interface BotLiveStateOrBuilder
      Returns:
      The skinTextureHash.
    • getSkinTextureHashBytes

      public com.google.protobuf.ByteString getSkinTextureHashBytes()
      Skin texture hash for avatar rendering.
      This is the hash extracted from the texture URL in the player's game profile.
      Can be used with services like mc-heads.net: https://mc-heads.net/body/<hash>
      Will be absent if the player has no custom skin or skin data is unavailable.
      
      optional string skin_texture_hash = 15;
      Specified by:
      getSkinTextureHashBytes in interface BotLiveStateOrBuilder
      Returns:
      The bytes for skinTextureHash.
    • getGameModeValue

      public int getGameModeValue()
      Current game mode of the player.
      Determines available actions (breaking blocks, flying, taking damage, etc.).
      
      .soulfire.v1.GameMode game_mode = 16;
      Specified by:
      getGameModeValue in interface BotLiveStateOrBuilder
      Returns:
      The enum numeric value on the wire for gameMode.
    • getGameMode

      public GameMode getGameMode()
      Current game mode of the player.
      Determines available actions (breaking blocks, flying, taking damage, etc.).
      
      .soulfire.v1.GameMode game_mode = 16;
      Specified by:
      getGameMode in interface BotLiveStateOrBuilder
      Returns:
      The gameMode.
    • 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 BotLiveState parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static BotLiveState.Builder newBuilder()
    • newBuilder

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

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

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

      public static BotLiveState getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<BotLiveState> 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 BotLiveState getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder