class Rosegold::Player
- Rosegold::Player
- Reference
- Object
Overview
Holds assumed server-side player state. Only gets updated when reading/writing packets.
Defined in:
rosegold/world/player.crConstant Summary
-
CRAWLING_AABB =
AABBf.new(-0.3, 0.0, -0.3, 0.3, 0.625, 0.3)
-
CRAWLING_EYE_HEIGHT =
0.40
-
DEFAULT_AABB =
AABBf.new(-0.3, 0.0, -0.3, 0.3, 1.8, 0.3)
-
DEFAULT_EYE_HEIGHT =
1.62
-
SNEAKING_AABB =
AABBf.new(-0.3, 0.0, -0.3, 0.3, 1.5, 0.3)
-
SNEAKING_EYE_HEIGHT =
1.27
Instance Method Summary
- #aabb
- #effect_by_name(name)
- #effects : Array(EntityEffect)
- #effects=(effects : Array(EntityEffect))
- #entity_id : UInt64
- #entity_id=(entity_id : UInt64)
- #eyes
- #feet : Vec3d
- #feet=(feet : Vec3d)
- #food : UInt32
- #food=(food : UInt32)
- #gamemode : Int8
- #gamemode=(gamemode : Int8)
- #health : Float32
- #health=(health : Float32)
- #hotbar_selection : UInt8
- #hotbar_selection=(hotbar_selection : UInt8)
- #in_water=(in_water : Bool)
- #in_water? : Bool
- #look : Look
- #look=(look : Look)
- #on_ground=(on_ground : Bool)
- #on_ground? : Bool
- #saturation : Float32
- #saturation=(saturation : Float32)
- #sneaking=(sneaking : Bool)
- #sneaking? : Bool
- #sprinting=(sprinting : Bool)
- #sprinting? : Bool
- #username : String | Nil
- #username=(username : String | Nil)
- #uuid : UUID | Nil
- #uuid=(uuid : UUID | Nil)
- #velocity : Vec3d
- #velocity=(velocity : Vec3d)