Hanging
Hanging
¶
Hanging(
entity_id: int,
uuid: str,
position: Vector3D[float],
rotation: Rotation,
metadata: Dict[int, Any],
)
Bases: Entity
Base class for hanging entities.
orientation
property
¶
orientation: str
Gets the orientation/direction the hanging entity is facing.
| RETURNS | DESCRIPTION |
|---|---|
str
|
The direction as a string ('south', 'west', 'north', or 'east'). |
air
property
¶
air: int
Remaining air ticks.
| RETURNS | DESCRIPTION |
|---|---|
int
|
Number of air ticks remaining before drowning |
custom_name
property
¶
is_custom_name_visible
property
¶
is_custom_name_visible: bool
Whether custom name is visible above entity.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if custom name should be displayed above the entity |
is_silent
property
¶
is_silent: bool
Whether entity makes sounds.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is silent and won't produce sounds |
no_gravity
property
¶
no_gravity: bool
Whether entity is affected by gravity.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity ignores gravity effects |
max_health
property
¶
max_health: float
Maximum health attribute value.
| RETURNS | DESCRIPTION |
|---|---|
float
|
Maximum health points for this entity |
movement_speed
property
¶
movement_speed: float
Movement speed attribute value.
| RETURNS | DESCRIPTION |
|---|---|
float
|
Movement speed multiplier for this entity |
armor
property
¶
armor: float
Armor attribute value.
| RETURNS | DESCRIPTION |
|---|---|
float
|
Armor points providing damage reduction |
attack_speed
property
¶
attack_speed: float
Attack speed attribute value.
| RETURNS | DESCRIPTION |
|---|---|
float
|
Attack speed multiplier for this entity |
on_fire
property
¶
on_fire: bool
Whether entity is on fire (bit 0).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is currently on fire |
crouched
property
¶
crouched: bool
Whether entity is crouching (bit 1).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is in crouching state |
sprinting
property
¶
sprinting: bool
Whether entity is sprinting (bit 3).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is currently sprinting |
invisible
property
¶
invisible: bool
Whether entity is invisible (bit 5).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity has invisibility effect active |
glowing
property
¶
glowing: bool
Whether entity is glowing (bit 6).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity has glowing outline effect |
flying_with_elytra
property
¶
flying_with_elytra: bool
Whether entity is flying with elytra (bit 7).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is gliding with elytra wings |
update_metadata
¶
update_properties
¶
get_attribute
¶
get_metadata_value
¶
ItemFrame
¶
ItemFrame(
entity_id: int,
uuid: str,
position: Vector3D[float],
rotation: Rotation,
metadata: Dict[int, Any],
)
Bases: Hanging
Item frame hanging entity.
| ATTRIBUTE | DESCRIPTION |
|---|---|
ENTITY_TYPE |
The Minecraft entity type identifier for item frames. |
BOUNDING |
The bounding box dimensions (width/depth, height) of the item frame. |
item
property
¶
rotation_value
property
¶
rotation_value: int
Rotation of the item in the frame.
| RETURNS | DESCRIPTION |
|---|---|
int
|
Rotation value (0-7, representing 45-degree increments). |
has_item
property
¶
has_item: bool
Whether the item frame contains an item.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if frame has an item, False if empty. |
rotation_degrees
property
¶
rotation_degrees: float
Rotation of the item in degrees.
| RETURNS | DESCRIPTION |
|---|---|
float
|
Rotation in degrees (0-315 in 45-degree increments). |
air
property
¶
air: int
Remaining air ticks.
| RETURNS | DESCRIPTION |
|---|---|
int
|
Number of air ticks remaining before drowning |
custom_name
property
¶
is_custom_name_visible
property
¶
is_custom_name_visible: bool
Whether custom name is visible above entity.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if custom name should be displayed above the entity |
is_silent
property
¶
is_silent: bool
Whether entity makes sounds.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is silent and won't produce sounds |
no_gravity
property
¶
no_gravity: bool
Whether entity is affected by gravity.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity ignores gravity effects |
max_health
property
¶
max_health: float
Maximum health attribute value.
| RETURNS | DESCRIPTION |
|---|---|
float
|
Maximum health points for this entity |
movement_speed
property
¶
movement_speed: float
Movement speed attribute value.
| RETURNS | DESCRIPTION |
|---|---|
float
|
Movement speed multiplier for this entity |
armor
property
¶
armor: float
Armor attribute value.
| RETURNS | DESCRIPTION |
|---|---|
float
|
Armor points providing damage reduction |
attack_speed
property
¶
attack_speed: float
Attack speed attribute value.
| RETURNS | DESCRIPTION |
|---|---|
float
|
Attack speed multiplier for this entity |
on_fire
property
¶
on_fire: bool
Whether entity is on fire (bit 0).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is currently on fire |
crouched
property
¶
crouched: bool
Whether entity is crouching (bit 1).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is in crouching state |
sprinting
property
¶
sprinting: bool
Whether entity is sprinting (bit 3).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is currently sprinting |
invisible
property
¶
invisible: bool
Whether entity is invisible (bit 5).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity has invisibility effect active |
glowing
property
¶
glowing: bool
Whether entity is glowing (bit 6).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity has glowing outline effect |
flying_with_elytra
property
¶
flying_with_elytra: bool
Whether entity is flying with elytra (bit 7).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is gliding with elytra wings |
orientation
property
¶
orientation: str
Gets the orientation/direction the hanging entity is facing.
| RETURNS | DESCRIPTION |
|---|---|
str
|
The direction as a string ('south', 'west', 'north', or 'east'). |
update_metadata
¶
update_properties
¶
get_attribute
¶
get_metadata_value
¶
Painting
¶
Bases: Hanging
Painting hanging entity.
| ATTRIBUTE | DESCRIPTION |
|---|---|
ENTITY_TYPE |
The Minecraft entity type identifier for paintings. |
BOUNDING |
The bounding box dimensions (width/depth, height) of the painting. |
PAINTING_TYPES |
Dictionary mapping painting names to their dimensions. |
painting_type
property
¶
air
property
¶
air: int
Remaining air ticks.
| RETURNS | DESCRIPTION |
|---|---|
int
|
Number of air ticks remaining before drowning |
custom_name
property
¶
is_custom_name_visible
property
¶
is_custom_name_visible: bool
Whether custom name is visible above entity.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if custom name should be displayed above the entity |
is_silent
property
¶
is_silent: bool
Whether entity makes sounds.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is silent and won't produce sounds |
no_gravity
property
¶
no_gravity: bool
Whether entity is affected by gravity.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity ignores gravity effects |
max_health
property
¶
max_health: float
Maximum health attribute value.
| RETURNS | DESCRIPTION |
|---|---|
float
|
Maximum health points for this entity |
movement_speed
property
¶
movement_speed: float
Movement speed attribute value.
| RETURNS | DESCRIPTION |
|---|---|
float
|
Movement speed multiplier for this entity |
armor
property
¶
armor: float
Armor attribute value.
| RETURNS | DESCRIPTION |
|---|---|
float
|
Armor points providing damage reduction |
attack_speed
property
¶
attack_speed: float
Attack speed attribute value.
| RETURNS | DESCRIPTION |
|---|---|
float
|
Attack speed multiplier for this entity |
on_fire
property
¶
on_fire: bool
Whether entity is on fire (bit 0).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is currently on fire |
crouched
property
¶
crouched: bool
Whether entity is crouching (bit 1).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is in crouching state |
sprinting
property
¶
sprinting: bool
Whether entity is sprinting (bit 3).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is currently sprinting |
invisible
property
¶
invisible: bool
Whether entity is invisible (bit 5).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity has invisibility effect active |
glowing
property
¶
glowing: bool
Whether entity is glowing (bit 6).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity has glowing outline effect |
flying_with_elytra
property
¶
flying_with_elytra: bool
Whether entity is flying with elytra (bit 7).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is gliding with elytra wings |
orientation
property
¶
orientation: str
Gets the orientation/direction the hanging entity is facing.
| RETURNS | DESCRIPTION |
|---|---|
str
|
The direction as a string ('south', 'west', 'north', or 'east'). |
set_painting_type
¶
set_painting_type(painting_name: str) -> None
Set the painting type by name.
| PARAMETER | DESCRIPTION |
|---|---|
painting_name
|
Name of the painting type to set.
TYPE:
|