Interface BotLiveStateOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
BotLiveState, BotLiveState.Builder
@Generated
public interface BotLiveStateOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionThe 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.floatCurrent saturation level.intCurrently selected hotbar slot index.Skin 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).booleanSkin texture hash for avatar rendering.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getX
double getX()X coordinate in the Minecraft world (east/west axis). East is positive, West is negative.
double x = 1;- Returns:
- The x.
-
getY
double getY()Y coordinate in the Minecraft world (vertical axis). Increases upward. Sea level is typically around 63.
double y = 2;- Returns:
- The y.
-
getZ
double getZ()Z coordinate in the Minecraft world (north/south axis). South is positive, North is negative.
double z = 3;- Returns:
- The z.
-
getXRot
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;- Returns:
- The xRot.
-
getYRot
float getYRot()Horizontal rotation (yaw) in degrees. Range: -180 to 180. 0 = South, 90 = West, -90 = East, +/-180 = North.
float yRot = 5;- Returns:
- The yRot.
-
getHealth
float getHealth()Current health points. Range: 0 (dead) to max_health. 1 point = half a heart in the UI.
float health = 6;- Returns:
- The health.
-
getMaxHealth
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;- Returns:
- The maxHealth.
-
getFoodLevel
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;- Returns:
- The foodLevel.
-
getSaturationLevel
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;- Returns:
- The saturationLevel.
-
getInventoryList
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; -
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; -
getInventoryCount
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; -
getInventoryOrBuilderList
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; -
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; -
getSelectedHotbarSlot
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;- Returns:
- The selectedHotbarSlot.
-
getDimension
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;- Returns:
- The dimension.
-
getDimensionBytes
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;- Returns:
- The bytes for dimension.
-
getExperienceLevel
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;- Returns:
- The experienceLevel.
-
getExperienceProgress
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;- Returns:
- The experienceProgress.
-
hasSkinTextureHash
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;- Returns:
- Whether the skinTextureHash field is set.
-
getSkinTextureHash
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;- Returns:
- The skinTextureHash.
-
getSkinTextureHashBytes
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;- Returns:
- The bytes for skinTextureHash.
-
getGameModeValue
int getGameModeValue()Current game mode of the player. Determines available actions (breaking blocks, flying, taking damage, etc.).
.soulfire.v1.GameMode game_mode = 16;- Returns:
- The enum numeric value on the wire for gameMode.
-
getGameMode
GameMode getGameMode()Current game mode of the player. Determines available actions (breaking blocks, flying, taking damage, etc.).
.soulfire.v1.GameMode game_mode = 16;- Returns:
- The gameMode.
-