class Rosegold::Entity
- Rosegold::Entity
- Reference
- Object
Defined in:
rosegold/world/entity.crConstant Summary
-
METADATA =
Array(Metadata).from_json(Rosegold.read_game_asset("entities.json"))
Constructors
Instance Method Summary
- #bounding_box
- #effects : Array(EntityEffect)
- #effects=(effects : Array(EntityEffect))
- #entity_id : UInt64
- #entity_id=(entity_id : UInt64)
- #entity_type : UInt32
- #entity_type=(entity_type : UInt32)
- #head_yaw : Float32
- #head_yaw=(head_yaw : Float32)
- #living=(living : Bool)
- #living? : Bool
- #metadata
- #on_ground=(on_ground : Bool)
- #on_ground? : Bool
- #passenger_ids : Array(UInt64)
- #passenger_ids=(passenger_ids : Array(UInt64))
- #pitch : Float32
- #pitch=(pitch : Float32)
- #position : Vec3d
- #position=(position : Vec3d)
- #update_passengers(client)
- #uuid : UUID
- #uuid=(uuid : UUID)
- #velocity : Vec3d
- #velocity=(velocity : Vec3d)
- #yaw : Float32
- #yaw=(yaw : Float32)
Constructor Detail
def self.new(entity_id : UInt64, 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)
#