Rosegold::Entity
Inherits Reference / Object
Constants
METADATA_BY_PROTOCOL = {772_u32 => METADATA_1218, 774_u32 => METADATA_12111, 775_u32 => METADATA_261}
NON_PICKABLE_ENTITIES = Set {"item", "experience_orb", "area_effect_cloud", "marker", "block_display", "item_display", "text_display", "lightning_bolt", "evoker_fangs", "ominous_item_spawner", "eye_of_ender", "arrow", "spectral_arrow", "trident", "fireball", "small_fireball", "dragon_fireball", "wither_skull", "snowball", "egg", "ender_pearl", "experience_bottle", "splash_potion", "lingering_potion", "llama_spit", "wind_charge", "breeze_wind_charge", "firework_rocket", "fishing_bobber"}
Matches vanilla MC's Entity.isPickable() = false. Default is pickable; only these are excluded.
Constructors
new(entity_id : UInt32, uuid : UUID, entity_type : UInt32, position : Rosegold::Vec3d, pitch : Float32, yaw : Float32, head_yaw : Float32, velocity : Rosegold::Vec3d, on_ground : Bool = true, living : Bool = false)
SourceClass methods
metadata_for_protocol
SourceInstance methods
bounding_box
Sourceeffects
Sourceeffects=(effects : Array(EntityEffect))
Sourceentity_id
Sourceentity_id=(entity_id : UInt32)
Sourceentity_type
Sourceentity_type=(entity_type : UInt32)
Sourcehead_yaw
Sourcehead_yaw=(head_yaw : Float32)
Sourceliving=(living : Bool)
Sourceliving?
Sourcemetadata
Sourceon_ground=(on_ground : Bool)
Sourceon_ground?
Sourcepassenger_ids
Sourcepassenger_ids=(passenger_ids : Array(UInt32))
Sourcepitch
Sourcepitch=(pitch : Float32)
Sourceposition
Sourceposition=(position : Vec3d)
Sourceupdate_passengers(client)
Sourceuuid
Sourceuuid=(uuid : UUID)
Sourcevelocity
Sourcevelocity=(velocity : Vec3d)
Sourceyaw
Sourceyaw=(yaw : Float32)
Source