Go: Actors¶
Functions¶
ListActors¶
| Go | |
|---|---|
ListActors lists every actor in a dimension. Server thread only.
- Parameters:
- dim :
int32
- dim :
- Return type:
([]ActorInfo, error) - Slots:
list_actors
EntityByID¶
| Go | |
|---|---|
EntityByID is the actor with this unique id, the uid of event payloads.
- Parameters:
- id :
ActorID
- id :
- Return type:
Entity
SpawnMob¶
| Go | |
|---|---|
SpawnMob spawns a mob and returns it.
- Parameters:
- dim :
int32 - typeName :
string - x :
float64 - y :
float64 - z :
float64
- dim :
- Return type:
(Entity, error) - Slots:
spawn_mob
Entity¶
Entity is one actor, named by its unique id.
Entity.Snapshot¶
| Go | |
|---|---|
Snapshot is the actor's full NBT as SNBT.
- Return type:
(string, error) - Slots:
actor_snapshot
Entity.Vehicle¶
| Go | |
|---|---|
Vehicle is what the actor rides.
- Return type:
(Entity, error) - Slots:
actor_get_vehicle
Entity.Owner¶
| Go | |
|---|---|
Owner is the actor's owner, for a tamed or summoned one.
- Return type:
(Entity, error) - Slots:
actor_get_owner
Entity.Target¶
| Go | |
|---|---|
Target is the actor's current target.
- Return type:
(Entity, error) - Slots:
actor_get_target
Entity.DistanceTo¶
| Go | |
|---|---|
DistanceTo is the distance to another actor.
- Parameters:
- other :
Entity
- other :
- Return type:
(float64, error) - Slots:
actor_distance_to
Entity.Clone¶
| Go | |
|---|---|
Clone copies the actor to a position and returns the copy.
- Parameters:
- dim :
int32 - x :
float64 - y :
float64 - z :
float64
- dim :
- Return type:
(Entity, error) - Slots:
actor_clone
Entity.PosX¶
| Go | |
|---|---|
PosX reads PIER_APROP_POS_X: (G) Actor::getPosition().x (feet: getFeetPos for players; POS_* uses getPosition)
- Return type:
(float64, error) - Slots:
actor_get_num
Entity.PosY¶
| Go | |
|---|---|
PosY reads PIER_APROP_POS_Y: (G)
- Return type:
(float64, error) - Slots:
actor_get_num
Entity.PosZ¶
| Go | |
|---|---|
PosZ reads PIER_APROP_POS_Z: (G)
- Return type:
(float64, error) - Slots:
actor_get_num
Entity.RotPitch¶
| Go | |
|---|---|
RotPitch reads PIER_APROP_ROT_PITCH: (G) Actor::getRotation().x
- Return type:
(float64, error) - Slots:
actor_get_num
Entity.RotYaw¶
| Go | |
|---|---|
RotYaw reads PIER_APROP_ROT_YAW: (G) Actor::getRotation().y
- Return type:
(float64, error) - Slots:
actor_get_num
Entity.Dimension¶
| Go | |
|---|---|
Dimension reads PIER_APROP_DIMENSION: (G) Actor::getDimensionId
- Return type:
(float64, error) - Slots:
actor_get_num
Entity.Health¶
| Go | |
|---|---|
Health reads PIER_APROP_HEALTH: (G) Actor::getHealth; heal/hurt via actions
- Return type:
(float64, error) - Slots:
actor_get_num
Entity.MaxHealth¶
| Go | |
|---|---|
MaxHealth reads PIER_APROP_MAX_HEALTH: (G) Actor::getMaxHealth
- Return type:
(float64, error) - Slots:
actor_get_num
Entity.IsAlive¶
| Go | |
|---|---|
IsAlive reads PIER_APROP_IS_ALIVE: (G) Actor::isAlive
- Return type:
(bool, error) - Slots:
actor_get_num
Entity.IsOnGround¶
| Go | |
|---|---|
IsOnGround reads PIER_APROP_IS_ON_GROUND: (G) Actor::isOnGround
- Return type:
(bool, error) - Slots:
actor_get_num
Entity.IsInWater¶
| Go | |
|---|---|
IsInWater reads PIER_APROP_IS_IN_WATER: (G) Actor::isInWater
- Return type:
(bool, error) - Slots:
actor_get_num
Entity.IsInLava¶
| Go | |
|---|---|
IsInLava reads PIER_APROP_IS_IN_LAVA: (G) Actor::isInLava
- Return type:
(bool, error) - Slots:
actor_get_num
Entity.IsOnFire¶
| Go | |
|---|---|
IsOnFire reads PIER_APROP_IS_ON_FIRE: (G) Actor::isOnFire
- Return type:
(bool, error) - Slots:
actor_get_num
Entity.IsInvisible¶
| Go | |
|---|---|
IsInvisible reads PIER_APROP_IS_INVISIBLE: (G) Actor::isInvisible
- Return type:
(bool, error) - Slots:
actor_get_num
Entity.IsSneaking¶
| Go | |
|---|---|
IsSneaking reads PIER_APROP_IS_SNEAKING: (G) Actor::isSneaking
- Return type:
(bool, error) - Slots:
actor_get_num
Entity.IsBaby¶
| Go | |
|---|---|
IsBaby reads PIER_APROP_IS_BABY: (G) Actor::isBaby
- Return type:
(bool, error) - Slots:
actor_get_num
Entity.IsRiding¶
| Go | |
|---|---|
IsRiding reads PIER_APROP_IS_RIDING: (G) Actor::isRiding
- Return type:
(bool, error) - Slots:
actor_get_num
Entity.IsTame¶
| Go | |
|---|---|
IsTame reads PIER_APROP_IS_TAME: (G) Actor::isTame
- Return type:
(bool, error) - Slots:
actor_get_num
Entity.Speed¶
| Go | |
|---|---|
Speed reads PIER_APROP_SPEED: (G) Actor::getSpeedInMetersPerSecond
- Return type:
(float64, error) - Slots:
actor_get_num
Entity.ViewX¶
| Go | |
|---|---|
ViewX reads PIER_APROP_VIEW_X: (G) Actor::getViewVector().x
- Return type:
(float64, error) - Slots:
actor_get_num
Entity.ViewY¶
| Go | |
|---|---|
ViewY reads PIER_APROP_VIEW_Y: (G) Actor::getViewVector().y
- Return type:
(float64, error) - Slots:
actor_get_num
Entity.ViewZ¶
| Go | |
|---|---|
ViewZ reads PIER_APROP_VIEW_Z: (G) Actor::getViewVector().z
- Return type:
(float64, error) - Slots:
actor_get_num
Entity.VelX¶
| Go | |
|---|---|
VelX reads PIER_APROP_VEL_X: (G) Actor::getVelocity().x
- Return type:
(float64, error) - Slots:
actor_get_num
Entity.VelY¶
| Go | |
|---|---|
VelY reads PIER_APROP_VEL_Y: (G) Actor::getVelocity().y
- Return type:
(float64, error) - Slots:
actor_get_num
Entity.VelZ¶
| Go | |
|---|---|
VelZ reads PIER_APROP_VEL_Z: (G) Actor::getVelocity().z
- Return type:
(float64, error) - Slots:
actor_get_num
Entity.HeadX¶
| Go | |
|---|---|
HeadX reads PIER_APROP_HEAD_X: (G) Actor::getHeadPos().x
- Return type:
(float64, error) - Slots:
actor_get_num
Entity.HeadY¶
| Go | |
|---|---|
HeadY reads PIER_APROP_HEAD_Y: (G) Actor::getHeadPos().y
- Return type:
(float64, error) - Slots:
actor_get_num
Entity.HeadZ¶
| Go | |
|---|---|
HeadZ reads PIER_APROP_HEAD_Z: (G) Actor::getHeadPos().z
- Return type:
(float64, error) - Slots:
actor_get_num
Entity.FeetX¶
| Go | |
|---|---|
FeetX reads PIER_APROP_FEET_X: (G) Actor::getFeetPos().x
- Return type:
(float64, error) - Slots:
actor_get_num
Entity.FeetY¶
| Go | |
|---|---|
FeetY reads PIER_APROP_FEET_Y: (G) Actor::getFeetPos().y
- Return type:
(float64, error) - Slots:
actor_get_num
Entity.FeetZ¶
| Go | |
|---|---|
FeetZ reads PIER_APROP_FEET_Z: (G) Actor::getFeetPos().z
- Return type:
(float64, error) - Slots:
actor_get_num
Entity.FallDistance¶
| Go | |
|---|---|
FallDistance reads PIER_APROP_FALL_DISTANCE: (G) Actor::getFallDistance
- Return type:
(float64, error) - Slots:
actor_get_num
Entity.IsPersistent¶
| Go | |
|---|---|
IsPersistent reads PIER_APROP_IS_PERSISTENT: (G) Actor::isPersistent
- Return type:
(bool, error) - Slots:
actor_get_num
Entity.IsLeashed¶
| Go | |
|---|---|
IsLeashed reads PIER_APROP_IS_LEASHED: (G) Actor::isLeashed
- Return type:
(bool, error) - Slots:
actor_get_num
Entity.IsInvulnerable¶
| Go | |
|---|---|
IsInvulnerable reads PIER_APROP_IS_INVULNERABLE: (G) Actor::isInvulnerable
- Return type:
(bool, error) - Slots:
actor_get_num
Entity.Variant¶
| Go | |
|---|---|
Variant reads PIER_APROP_VARIANT: (G) Actor::getVariant
- Return type:
(float64, error) - Slots:
actor_get_num
Entity.MarkVariant¶
| Go | |
|---|---|
MarkVariant reads PIER_APROP_MARK_VARIANT: (G) Actor::getMarkVariant
- Return type:
(float64, error) - Slots:
actor_get_num
Entity.Scale¶
| Go | |
|---|---|
Scale reads PIER_APROP_SCALE: (G) Actor::getScaleFactor
- Return type:
(float64, error) - Slots:
actor_get_num
Entity.Brightness¶
| Go | |
|---|---|
Brightness reads PIER_APROP_BRIGHTNESS: (G) Actor::getBrightness
- Return type:
(float64, error) - Slots:
actor_get_num
Entity.Radius¶
| Go | |
|---|---|
Radius reads PIER_APROP_RADIUS: (G) Actor::getRadius
- Return type:
(float64, error) - Slots:
actor_get_num
Entity.HasTotem¶
| Go | |
|---|---|
HasTotem reads PIER_APROP_HAS_TOTEM: (G) Actor::hasTotemEquipped
- Return type:
(bool, error) - Slots:
actor_get_num
Entity.IsInRain¶
| Go | |
|---|---|
IsInRain reads PIER_APROP_IS_IN_RAIN: (G) Actor::isInRain
- Return type:
(bool, error) - Slots:
actor_get_num
Entity.IsInSnow¶
| Go | |
|---|---|
IsInSnow reads PIER_APROP_IS_IN_SNOW: (G) Actor::isInSnow
- Return type:
(bool, error) - Slots:
actor_get_num
Entity.IsInThunderstorm¶
| Go | |
|---|---|
IsInThunderstorm reads PIER_APROP_IS_IN_THUNDERSTORM: (G) Actor::isInThunderstorm
- Return type:
(bool, error) - Slots:
actor_get_num
Entity.IsFrozen¶
| Go | |
|---|---|
IsFrozen reads PIER_APROP_IS_FROZEN: (G) Actor::isFrozen
- Return type:
(bool, error) - Slots:
actor_get_num
Entity.IsInLove¶
| Go | |
|---|---|
IsInLove reads PIER_APROP_IS_IN_LOVE: (G) unsupported since BDS 1.26.40: Actor::isInLove is gone
The host answers no on every current engine version: (G) unsupported since BDS 1.26.40: Actor::isInLove is gone
- Return type:
(bool, error) - Slots:
actor_get_num
Entity.DeathTime¶
| Go | |
|---|---|
DeathTime reads PIER_APROP_DEATH_TIME: (G) Actor::getDeathTime
- Return type:
(float64, error) - Slots:
actor_get_num
Entity.HasPassenger¶
| Go | |
|---|---|
HasPassenger reads PIER_APROP_HAS_PASSENGER: (G) Actor::hasPassenger
- Return type:
(bool, error) - Slots:
actor_get_num
Entity.TypeName¶
| Go | |
|---|---|
TypeName reads PIER_ASTR_TYPE_NAME: Actor::getTypeName
- Return type:
(string, error) - Slots:
actor_get_str
Entity.NameTag¶
| Go | |
|---|---|
NameTag reads PIER_ASTR_NAME_TAG: Actor::getNameTag
- Return type:
(string, error) - Slots:
actor_get_str
Entity.ScoreTag¶
| Go | |
|---|---|
ScoreTag reads PIER_ASTR_SCORE_TAG: Actor::getScoreTag
- Return type:
(string, error) - Slots:
actor_get_str
Entity.FilteredName¶
| Go | |
|---|---|
FilteredName reads PIER_ASTR_FILTERED_NAME: Actor::getFilteredNameTag
- Return type:
(string, error) - Slots:
actor_get_str
Entity.Kill¶
| Go | |
|---|---|
Kill runs PIER_AACT_KILL: Actor::kill
The output, when the verb has one, is returned; abi.h names each argument.
- Parameters:
- sarg :
string - a :
float64 - b :
float64 - c :
float64
- sarg :
- Return type:
(string, error) - Slots:
actor_action
Entity.Despawn¶
| Go | |
|---|---|
Despawn runs PIER_AACT_DESPAWN: Actor::despawn
The output, when the verb has one, is returned; abi.h names each argument.
- Parameters:
- sarg :
string - a :
float64 - b :
float64 - c :
float64
- sarg :
- Return type:
(string, error) - Slots:
actor_action
Entity.Heal¶
| Go | |
|---|---|
Heal runs PIER_AACT_HEAL: a=amount Actor::heal
The output, when the verb has one, is returned; abi.h names each argument.
- Parameters:
- sarg :
string - a :
float64 - b :
float64 - c :
float64
- sarg :
- Return type:
(string, error) - Slots:
actor_action
Entity.SetOnFire¶
| Go | |
|---|---|
SetOnFire runs PIER_AACT_SET_ON_FIRE: a=seconds Actor::setOnFire
The output, when the verb has one, is returned; abi.h names each argument.
- Parameters:
- sarg :
string - a :
float64 - b :
float64 - c :
float64
- sarg :
- Return type:
(string, error) - Slots:
actor_action
Entity.Teleport¶
| Go | |
|---|---|
Teleport runs PIER_AACT_TELEPORT: a,b,c=pos, sarg=dim ("0".."2") Actor::teleport
The output, when the verb has one, is returned; abi.h names each argument.
- Parameters:
- sarg :
string - a :
float64 - b :
float64 - c :
float64
- sarg :
- Return type:
(string, error) - Slots:
actor_action
Entity.SetNameTag¶
| Go | |
|---|---|
SetNameTag runs PIER_AACT_SET_NAME_TAG: sarg=name Actor::setNameTag
The output, when the verb has one, is returned; abi.h names each argument.
- Parameters:
- sarg :
string - a :
float64 - b :
float64 - c :
float64
- sarg :
- Return type:
(string, error) - Slots:
actor_action
Entity.AddTag¶
| Go | |
|---|---|
AddTag runs PIER_AACT_ADD_TAG: sarg=tag β out "0"/"1" Actor::addTag
The output, when the verb has one, is returned; abi.h names each argument.
- Parameters:
- sarg :
string - a :
float64 - b :
float64 - c :
float64
- sarg :
- Return type:
(string, error) - Slots:
actor_action
Entity.RemoveTag¶
| Go | |
|---|---|
RemoveTag runs PIER_AACT_REMOVE_TAG: sarg=tag β out "0"/"1" Actor::removeTag
The output, when the verb has one, is returned; abi.h names each argument.
- Parameters:
- sarg :
string - a :
float64 - b :
float64 - c :
float64
- sarg :
- Return type:
(string, error) - Slots:
actor_action
Entity.HasTag¶
| Go | |
|---|---|
HasTag runs PIER_AACT_HAS_TAG: sarg=tag β out "0"/"1" Actor::hasTag
The output, when the verb has one, is returned; abi.h names each argument.
- Parameters:
- sarg :
string - a :
float64 - b :
float64 - c :
float64
- sarg :
- Return type:
(string, error) - Slots:
actor_action
Entity.AddEffect¶
| Go | |
|---|---|
AddEffect runs PIER_AACT_ADD_EFFECT: sarg=effect name, a=ticks, b=amplifier, c=visible(0/1) MobEffect::getByName + Actor::addEffect
The output, when the verb has one, is returned; abi.h names each argument.
- Parameters:
- sarg :
string - a :
float64 - b :
float64 - c :
float64
- sarg :
- Return type:
(string, error) - Slots:
actor_action
Entity.RemoveEffect¶
| Go | |
|---|---|
RemoveEffect runs PIER_AACT_REMOVE_EFFECT: sarg=effect name Actor::removeEffect(id)
The output, when the verb has one, is returned; abi.h names each argument.
- Parameters:
- sarg :
string - a :
float64 - b :
float64 - c :
float64
- sarg :
- Return type:
(string, error) - Slots:
actor_action
Entity.ClearEffects¶
| Go | |
|---|---|
ClearEffects runs PIER_AACT_CLEAR_EFFECTS: Actor::removeAllEffects
The output, when the verb has one, is returned; abi.h names each argument.
- Parameters:
- sarg :
string - a :
float64 - b :
float64 - c :
float64
- sarg :
- Return type:
(string, error) - Slots:
actor_action
Entity.Hurt¶
| Go | |
|---|---|
Hurt runs PIER_AACT_HURT: a=damage (generic damage source) Actor::hurt
The output, when the verb has one, is returned; abi.h names each argument.
- Parameters:
- sarg :
string - a :
float64 - b :
float64 - c :
float64
- sarg :
- Return type:
(string, error) - Slots:
actor_action
Entity.AttributeGet¶
| Go | |
|---|---|
AttributeGet runs PIER_AACT_ATTRIBUTE_GET: sarg=attribute name ("minecraft:health"β¦) β out value
The output, when the verb has one, is returned; abi.h names each argument.
- Parameters:
- sarg :
string - a :
float64 - b :
float64 - c :
float64
- sarg :
- Return type:
(string, error) - Slots:
actor_action
Entity.SetVariant¶
| Go | |
|---|---|
SetVariant runs PIER_AACT_SET_VARIANT: a=variant Actor::setVariant
The output, when the verb has one, is returned; abi.h names each argument.
- Parameters:
- sarg :
string - a :
float64 - b :
float64 - c :
float64
- sarg :
- Return type:
(string, error) - Slots:
actor_action
Entity.SetMarkVariant¶
| Go | |
|---|---|
SetMarkVariant runs PIER_AACT_SET_MARK_VARIANT: a=variant Actor::setMarkVariant
The output, when the verb has one, is returned; abi.h names each argument.
- Parameters:
- sarg :
string - a :
float64 - b :
float64 - c :
float64
- sarg :
- Return type:
(string, error) - Slots:
actor_action
Entity.SetPersistent¶
| Go | |
|---|---|
SetPersistent runs PIER_AACT_SET_PERSISTENT: Actor::setPersistent
The output, when the verb has one, is returned; abi.h names each argument.
- Parameters:
- sarg :
string - a :
float64 - b :
float64 - c :
float64
- sarg :
- Return type:
(string, error) - Slots:
actor_action
Entity.SetLeashHolder¶
| Go | |
|---|---|
SetLeashHolder runs PIER_AACT_SET_LEASH_HOLDER: a=holder ActorUniqueID Actor::setLeashHolder
The output, when the verb has one, is returned; abi.h names each argument.
- Parameters:
- sarg :
string - a :
float64 - b :
float64 - c :
float64
- sarg :
- Return type:
(string, error) - Slots:
actor_action
Entity.SetInvisible¶
| Go | |
|---|---|
SetInvisible runs PIER_AACT_SET_INVISIBLE: a=0/1 Actor::setInvisible
The output, when the verb has one, is returned; abi.h names each argument.
- Parameters:
- sarg :
string - a :
float64 - b :
float64 - c :
float64
- sarg :
- Return type:
(string, error) - Slots:
actor_action
Entity.SetSneaking¶
| Go | |
|---|---|
SetSneaking runs PIER_AACT_SET_SNEAKING: a=0/1 Actor::setSneaking
The output, when the verb has one, is returned; abi.h names each argument.
- Parameters:
- sarg :
string - a :
float64 - b :
float64 - c :
float64
- sarg :
- Return type:
(string, error) - Slots:
actor_action
Entity.SetNameTagVisible¶
| Go | |
|---|---|
SetNameTagVisible runs PIER_AACT_SET_NAME_TAG_VISIBLE: a=0/1 Actor::setNameTagVisible
The output, when the verb has one, is returned; abi.h names each argument.
- Parameters:
- sarg :
string - a :
float64 - b :
float64 - c :
float64
- sarg :
- Return type:
(string, error) - Slots:
actor_action
Entity.SetTarget¶
| Go | |
|---|---|
SetTarget runs PIER_AACT_SET_TARGET: a=target ActorUniqueID Actor::setTarget
The output, when the verb has one, is returned; abi.h names each argument.
- Parameters:
- sarg :
string - a :
float64 - b :
float64 - c :
float64
- sarg :
- Return type:
(string, error) - Slots:
actor_action
Entity.SetOwner¶
| Go | |
|---|---|
SetOwner runs PIER_AACT_SET_OWNER: a=owner ActorUniqueID Actor::setOwner
The output, when the verb has one, is returned; abi.h names each argument.
- Parameters:
- sarg :
string - a :
float64 - b :
float64 - c :
float64
- sarg :
- Return type:
(string, error) - Slots:
actor_action
Entity.Burn¶
| Go | |
|---|---|
Burn runs PIER_AACT_BURN: a=damage Actor::burn
The output, when the verb has one, is returned; abi.h names each argument.
- Parameters:
- sarg :
string - a :
float64 - b :
float64 - c :
float64
- sarg :
- Return type:
(string, error) - Slots:
actor_action
Entity.StopFire¶
| Go | |
|---|---|
StopFire runs PIER_AACT_STOP_FIRE: Actor::extinguishFire
The output, when the verb has one, is returned; abi.h names each argument.
- Parameters:
- sarg :
string - a :
float64 - b :
float64 - c :
float64
- sarg :
- Return type:
(string, error) - Slots:
actor_action
Entity.SetVelocity¶
| Go | |
|---|---|
SetVelocity runs PIER_AACT_SET_VELOCITY: a,b,c=vel Actor::setVelocity
The output, when the verb has one, is returned; abi.h names each argument.
- Parameters:
- sarg :
string - a :
float64 - b :
float64 - c :
float64
- sarg :
- Return type:
(string, error) - Slots:
actor_action
Entity.ApplyImpulse¶
| Go | |
|---|---|
ApplyImpulse runs PIER_AACT_APPLY_IMPULSE: a,b,c=impulse Actor::applyImpulse
The output, when the verb has one, is returned; abi.h names each argument.
- Parameters:
- sarg :
string - a :
float64 - b :
float64 - c :
float64
- sarg :
- Return type:
(string, error) - Slots:
actor_action
Entity.SetScoreTag¶
| Go | |
|---|---|
SetScoreTag runs PIER_AACT_SET_SCORE_TAG: sarg=text Actor::setScoreTag
The output, when the verb has one, is returned; abi.h names each argument.
- Parameters:
- sarg :
string - a :
float64 - b :
float64 - c :
float64
- sarg :
- Return type:
(string, error) - Slots:
actor_action
Entity.SetSkinId¶
| Go | |
|---|---|
SetSkinId runs PIER_AACT_SET_SKIN_ID: a=skin id Actor::setSkinID
The output, when the verb has one, is returned; abi.h names each argument.
- Parameters:
- sarg :
string - a :
float64 - b :
float64 - c :
float64
- sarg :
- Return type:
(string, error) - Slots:
actor_action
Entity.SetStrength¶
| Go | |
|---|---|
SetStrength runs PIER_AACT_SET_STRENGTH: a=strength Actor::setStrength
The output, when the verb has one, is returned; abi.h names each argument.
- Parameters:
- sarg :
string - a :
float64 - b :
float64 - c :
float64
- sarg :
- Return type:
(string, error) - Slots:
actor_action
Entity.RemoveAllPassengers¶
| Go | |
|---|---|
RemoveAllPassengers runs PIER_AACT_REMOVE_ALL_PASSENGERS: Actor::removeAllPassengers
The output, when the verb has one, is returned; abi.h names each argument.
- Parameters:
- sarg :
string - a :
float64 - b :
float64 - c :
float64
- sarg :
- Return type:
(string, error) - Slots:
actor_action
Entity.ExecuteEvent¶
| Go | |
|---|---|
ExecuteEvent runs PIER_AACT_EXECUTE_EVENT: sarg=event name Actor::executeEvent
The output, when the verb has one, is returned; abi.h names each argument.
- Parameters:
- sarg :
string - a :
float64 - b :
float64 - c :
float64
- sarg :
- Return type:
(string, error) - Slots:
actor_action
Entity.SetRotation¶
| Go | |
|---|---|
SetRotation runs PIER_AACT_SET_ROTATION: a=pitch b=yaw Actor::setRotationWrapped
The output, when the verb has one, is returned; abi.h names each argument.
- Parameters:
- sarg :
string - a :
float64 - b :
float64 - c :
float64
- sarg :
- Return type:
(string, error) - Slots:
actor_action
ActorInfo¶
ActorInfo is one actor of a dimension: its unique id and its type name.
ActorID¶
| Go | |
|---|---|
ActorID is an actor's unique id, the uid of event payloads. 0 never resolves.
AProp*¶
| Name | Value | Description |
|---|---|---|
APropPosX |
0 |
APropPosX is PIER_APROP_POS_X: (G) Actor::getPosition().x (feet: getFeetPos for players; POS_* uses getPosition) |
APropPosY |
1 |
APropPosY is PIER_APROP_POS_Y: (G) |
APropPosZ |
2 |
APropPosZ is PIER_APROP_POS_Z: (G) |
APropRotPitch |
3 |
APropRotPitch is PIER_APROP_ROT_PITCH: (G) Actor::getRotation().x |
APropRotYaw |
4 |
APropRotYaw is PIER_APROP_ROT_YAW: (G) Actor::getRotation().y |
APropDimension |
5 |
APropDimension is PIER_APROP_DIMENSION: (G) Actor::getDimensionId |
APropHealth |
6 |
APropHealth is PIER_APROP_HEALTH: (G) Actor::getHealth; heal/hurt via actions |
APropMaxHealth |
7 |
APropMaxHealth is PIER_APROP_MAX_HEALTH: (G) Actor::getMaxHealth |
APropIsAlive |
8 |
APropIsAlive is PIER_APROP_IS_ALIVE: (G) Actor::isAlive |
APropIsOnGround |
9 |
APropIsOnGround is PIER_APROP_IS_ON_GROUND: (G) Actor::isOnGround |
APropIsInWater |
10 |
APropIsInWater is PIER_APROP_IS_IN_WATER: (G) Actor::isInWater |
APropIsInLava |
11 |
APropIsInLava is PIER_APROP_IS_IN_LAVA: (G) Actor::isInLava |
APropIsOnFire |
12 |
APropIsOnFire is PIER_APROP_IS_ON_FIRE: (G) Actor::isOnFire |
APropIsInvisible |
13 |
APropIsInvisible is PIER_APROP_IS_INVISIBLE: (G) Actor::isInvisible |
APropIsSneaking |
14 |
APropIsSneaking is PIER_APROP_IS_SNEAKING: (G) Actor::isSneaking |
APropIsBaby |
15 |
APropIsBaby is PIER_APROP_IS_BABY: (G) Actor::isBaby |
APropIsRiding |
16 |
APropIsRiding is PIER_APROP_IS_RIDING: (G) Actor::isRiding |
APropIsTame |
17 |
APropIsTame is PIER_APROP_IS_TAME: (G) Actor::isTame |
APropSpeed |
18 |
APropSpeed is PIER_APROP_SPEED: (G) Actor::getSpeedInMetersPerSecond |
APropViewX |
19 |
APropViewX is PIER_APROP_VIEW_X: (G) Actor::getViewVector().x |
APropViewY |
20 |
APropViewY is PIER_APROP_VIEW_Y: (G) Actor::getViewVector().y |
APropViewZ |
21 |
APropViewZ is PIER_APROP_VIEW_Z: (G) Actor::getViewVector().z |
APropVelX |
22 |
APropVelX is PIER_APROP_VEL_X: (G) Actor::getVelocity().x |
APropVelY |
23 |
APropVelY is PIER_APROP_VEL_Y: (G) Actor::getVelocity().y |
APropVelZ |
24 |
APropVelZ is PIER_APROP_VEL_Z: (G) Actor::getVelocity().z |
APropHeadX |
25 |
APropHeadX is PIER_APROP_HEAD_X: (G) Actor::getHeadPos().x |
APropHeadY |
26 |
APropHeadY is PIER_APROP_HEAD_Y: (G) Actor::getHeadPos().y |
APropHeadZ |
27 |
APropHeadZ is PIER_APROP_HEAD_Z: (G) Actor::getHeadPos().z |
APropFeetX |
28 |
APropFeetX is PIER_APROP_FEET_X: (G) Actor::getFeetPos().x |
APropFeetY |
29 |
APropFeetY is PIER_APROP_FEET_Y: (G) Actor::getFeetPos().y |
APropFeetZ |
30 |
APropFeetZ is PIER_APROP_FEET_Z: (G) Actor::getFeetPos().z |
APropFallDistance |
31 |
APropFallDistance is PIER_APROP_FALL_DISTANCE: (G) Actor::getFallDistance |
APropIsPersistent |
32 |
APropIsPersistent is PIER_APROP_IS_PERSISTENT: (G) Actor::isPersistent |
APropIsLeashed |
33 |
APropIsLeashed is PIER_APROP_IS_LEASHED: (G) Actor::isLeashed |
APropIsInvulnerable |
34 |
APropIsInvulnerable is PIER_APROP_IS_INVULNERABLE: (G) Actor::isInvulnerable |
APropVariant |
35 |
APropVariant is PIER_APROP_VARIANT: (G) Actor::getVariant |
APropMarkVariant |
36 |
APropMarkVariant is PIER_APROP_MARK_VARIANT: (G) Actor::getMarkVariant |
APropScale |
37 |
APropScale is PIER_APROP_SCALE: (G) Actor::getScaleFactor |
APropBrightness |
38 |
APropBrightness is PIER_APROP_BRIGHTNESS: (G) Actor::getBrightness |
APropRadius |
39 |
APropRadius is PIER_APROP_RADIUS: (G) Actor::getRadius |
APropHasTotem |
40 |
APropHasTotem is PIER_APROP_HAS_TOTEM: (G) Actor::hasTotemEquipped |
APropIsInRain |
41 |
APropIsInRain is PIER_APROP_IS_IN_RAIN: (G) Actor::isInRain |
APropIsInSnow |
42 |
APropIsInSnow is PIER_APROP_IS_IN_SNOW: (G) Actor::isInSnow |
APropIsInThunderstorm |
43 |
APropIsInThunderstorm is PIER_APROP_IS_IN_THUNDERSTORM: (G) Actor::isInThunderstorm |
APropIsFrozen |
44 |
APropIsFrozen is PIER_APROP_IS_FROZEN: (G) Actor::isFrozen |
APropIsInLove |
45 |
the current engine version gives no value for this constant: APropIsInLove is PIER_APROP_IS_IN_LOVE: (G) unsupported since BDS 1.26.40: Actor::isInLove is gone |
APropDeathTime |
46 |
APropDeathTime is PIER_APROP_DEATH_TIME: (G) Actor::getDeathTime |
APropHasPassenger |
47 |
APropHasPassenger is PIER_APROP_HAS_PASSENGER: (G) Actor::hasPassenger |
AStr*¶
| Name | Value | Description |
|---|---|---|
AStrTypeName |
0 |
AStrTypeName is PIER_ASTR_TYPE_NAME: Actor::getTypeName |
AStrNameTag |
1 |
AStrNameTag is PIER_ASTR_NAME_TAG: Actor::getNameTag |
AStrScoreTag |
2 |
AStrScoreTag is PIER_ASTR_SCORE_TAG: Actor::getScoreTag |
AStrFilteredName |
3 |
AStrFilteredName is PIER_ASTR_FILTERED_NAME: Actor::getFilteredNameTag |
AAct*¶
| Name | Value | Description |
|---|---|---|
AActKill |
0 |
AActKill is PIER_AACT_KILL: Actor::kill |
AActDespawn |
1 |
AActDespawn is PIER_AACT_DESPAWN: Actor::despawn |
AActHeal |
2 |
AActHeal is PIER_AACT_HEAL: a=amount Actor::heal |
AActSetOnFire |
3 |
AActSetOnFire is PIER_AACT_SET_ON_FIRE: a=seconds Actor::setOnFire |
AActTeleport |
4 |
AActTeleport is PIER_AACT_TELEPORT: a,b,c=pos, sarg=dim ("0".."2") Actor::teleport |
AActSetNameTag |
5 |
AActSetNameTag is PIER_AACT_SET_NAME_TAG: sarg=name Actor::setNameTag |
AActAddTag |
6 |
AActAddTag is PIER_AACT_ADD_TAG: sarg=tag β out "0"/"1" Actor::addTag |
AActRemoveTag |
7 |
AActRemoveTag is PIER_AACT_REMOVE_TAG: sarg=tag β out "0"/"1" Actor::removeTag |
AActHasTag |
8 |
AActHasTag is PIER_AACT_HAS_TAG: sarg=tag β out "0"/"1" Actor::hasTag |
AActAddEffect |
9 |
AActAddEffect is PIER_AACT_ADD_EFFECT: sarg=effect name, a=ticks, b=amplifier, c=visible(0/1) MobEffect::getByName + Actor::addEffect |
AActRemoveEffect |
10 |
AActRemoveEffect is PIER_AACT_REMOVE_EFFECT: sarg=effect name Actor::removeEffect(id) |
AActClearEffects |
11 |
AActClearEffects is PIER_AACT_CLEAR_EFFECTS: Actor::removeAllEffects |
AActHurt |
12 |
AActHurt is PIER_AACT_HURT: a=damage (generic damage source) Actor::hurt |
AActAttributeGet |
13 |
AActAttributeGet is PIER_AACT_ATTRIBUTE_GET: sarg=attribute name ("minecraft:health"β¦) β out value |
AActSetVariant |
14 |
AActSetVariant is PIER_AACT_SET_VARIANT: a=variant Actor::setVariant |
AActSetMarkVariant |
15 |
AActSetMarkVariant is PIER_AACT_SET_MARK_VARIANT: a=variant Actor::setMarkVariant |
AActSetPersistent |
16 |
AActSetPersistent is PIER_AACT_SET_PERSISTENT: Actor::setPersistent |
AActSetLeashHolder |
17 |
AActSetLeashHolder is PIER_AACT_SET_LEASH_HOLDER: a=holder ActorUniqueID Actor::setLeashHolder |
AActSetInvisible |
18 |
AActSetInvisible is PIER_AACT_SET_INVISIBLE: a=0/1 Actor::setInvisible |
AActSetSneaking |
19 |
AActSetSneaking is PIER_AACT_SET_SNEAKING: a=0/1 Actor::setSneaking |
AActSetNameTagVisible |
20 |
AActSetNameTagVisible is PIER_AACT_SET_NAME_TAG_VISIBLE: a=0/1 Actor::setNameTagVisible |
AActSetTarget |
21 |
AActSetTarget is PIER_AACT_SET_TARGET: a=target ActorUniqueID Actor::setTarget |
AActSetOwner |
22 |
AActSetOwner is PIER_AACT_SET_OWNER: a=owner ActorUniqueID Actor::setOwner |
AActBurn |
23 |
AActBurn is PIER_AACT_BURN: a=damage Actor::burn |
AActStopFire |
24 |
AActStopFire is PIER_AACT_STOP_FIRE: Actor::extinguishFire |
AActSetVelocity |
25 |
AActSetVelocity is PIER_AACT_SET_VELOCITY: a,b,c=vel Actor::setVelocity |
AActApplyImpulse |
26 |
AActApplyImpulse is PIER_AACT_APPLY_IMPULSE: a,b,c=impulse Actor::applyImpulse |
AActSetScoreTag |
27 |
AActSetScoreTag is PIER_AACT_SET_SCORE_TAG: sarg=text Actor::setScoreTag |
AActSetSkinId |
28 |
AActSetSkinId is PIER_AACT_SET_SKIN_ID: a=skin id Actor::setSkinID |
AActSetStrength |
29 |
AActSetStrength is PIER_AACT_SET_STRENGTH: a=strength Actor::setStrength |
AActRemoveAllPassengers |
30 |
AActRemoveAllPassengers is PIER_AACT_REMOVE_ALL_PASSENGERS: Actor::removeAllPassengers |
AActExecuteEvent |
31 |
AActExecuteEvent is PIER_AACT_EXECUTE_EVENT: sarg=event name Actor::executeEvent |
AActSetRotation |
32 |
AActSetRotation is PIER_AACT_SET_ROTATION: a=pitch b=yaw Actor::setRotationWrapped |