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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classReal-time state of a connected bot.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT, T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic BotLiveStatestatic final com.google.protobuf.Descriptors.DescriptorThe dimension the player is currently in.com.google.protobuf.ByteStringThe dimension the player is currently in.intPlayer's current experience level (the number shown on the XP bar).floatProgress towards the next experience level.intCurrent hunger/food level.Current game mode of the player.intCurrent game mode of the player.floatCurrent health points.getInventory(int index) Inventory slots containing items (only non-empty slots are included).intInventory slots containing items (only non-empty slots are included).Inventory slots containing items (only non-empty slots are included).getInventoryOrBuilder(int index) Inventory slots containing items (only non-empty slots are included).List<? extends InventorySlotOrBuilder> Inventory slots containing items (only non-empty slots are included).floatMaximum health points the player can have.com.google.protobuf.Parser<BotLiveState> floatCurrent saturation level.intCurrently selected hotbar slot index.intSkin texture hash for avatar rendering.com.google.protobuf.ByteStringSkin texture hash for avatar rendering.doublegetX()X coordinate in the Minecraft world (east/west axis).floatgetXRot()Vertical rotation (pitch) in degrees.doublegetY()Y coordinate in the Minecraft world (vertical axis).floatgetYRot()Horizontal rotation (yaw) in degrees.doublegetZ()Z coordinate in the Minecraft world (north/south axis).inthashCode()booleanSkin texture hash for avatar rendering.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic BotLiveState.Builderstatic BotLiveState.BuildernewBuilder(BotLiveState prototype) protected BotLiveState.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static BotLiveStateparseDelimitedFrom(InputStream input) static BotLiveStateparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BotLiveStateparseFrom(byte[] data) static BotLiveStateparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BotLiveStateparseFrom(com.google.protobuf.ByteString data) static BotLiveStateparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BotLiveStateparseFrom(com.google.protobuf.CodedInputStream input) static BotLiveStateparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BotLiveStateparseFrom(InputStream input) static BotLiveStateparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BotLiveStateparseFrom(ByteBuffer data) static BotLiveStateparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<BotLiveState> parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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:
internalGetFieldAccessorTablein classcom.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:
getXin interfaceBotLiveStateOrBuilder- 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:
getYin interfaceBotLiveStateOrBuilder- 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:
getZin interfaceBotLiveStateOrBuilder- 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:
getXRotin interfaceBotLiveStateOrBuilder- 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:
getYRotin interfaceBotLiveStateOrBuilder- 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:
getHealthin interfaceBotLiveStateOrBuilder- 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:
getMaxHealthin interfaceBotLiveStateOrBuilder- 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:
getFoodLevelin interfaceBotLiveStateOrBuilder- 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:
getSaturationLevelin interfaceBotLiveStateOrBuilder- Returns:
- The saturationLevel.
-
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:
getInventoryListin interfaceBotLiveStateOrBuilder
-
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:
getInventoryOrBuilderListin interfaceBotLiveStateOrBuilder
-
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:
getInventoryCountin interfaceBotLiveStateOrBuilder
-
getInventory
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:
getInventoryin interfaceBotLiveStateOrBuilder
-
getInventoryOrBuilder
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:
getInventoryOrBuilderin interfaceBotLiveStateOrBuilder
-
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:
getSelectedHotbarSlotin interfaceBotLiveStateOrBuilder- Returns:
- The selectedHotbarSlot.
-
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:
getDimensionin interfaceBotLiveStateOrBuilder- 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:
getDimensionBytesin interfaceBotLiveStateOrBuilder- 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:
getExperienceLevelin interfaceBotLiveStateOrBuilder- 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:
getExperienceProgressin interfaceBotLiveStateOrBuilder- 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:
hasSkinTextureHashin interfaceBotLiveStateOrBuilder- Returns:
- Whether the skinTextureHash field is set.
-
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:
getSkinTextureHashin interfaceBotLiveStateOrBuilder- 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:
getSkinTextureHashBytesin interfaceBotLiveStateOrBuilder- 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:
getGameModeValuein interfaceBotLiveStateOrBuilder- Returns:
- The enum numeric value on the wire for 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:
getGameModein interfaceBotLiveStateOrBuilder- Returns:
- The gameMode.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.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
- Throws:
IOException
-
parseFrom
public static BotLiveState parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static BotLiveState parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static BotLiveState parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected BotLiveState.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-