class Rosegold::Serverbound::PlayerBlockPlacement
- Rosegold::Serverbound::PlayerBlockPlacement
- Rosegold::Serverbound::Packet
- Rosegold::Packet
- Rosegold::Event
- Reference
- Object
Overview
#cursor
(in-block coordinates) ranges from 0.0 to 1.0
and determines e.g. top/bottom slab or left/right door.
Defined in:
rosegold/packets/serverbound/player_block_placement.crConstructors
Class Method Summary
Instance Method Summary
- #cursor : Vec3f
- #cursor=(cursor : Vec3f)
- #face : BlockFace
- #face=(face : BlockFace)
- #hand : Hand
- #hand=(hand : Hand)
- #inside_block=(inside_block : Bool)
- #inside_block? : Bool
- #location : Vec3i
- #location=(location : Vec3i)
- #write : Bytes
Class methods inherited from class Rosegold::Serverbound::Packet
new_raw(bytes)
new_raw,
state
state
Instance methods inherited from class Rosegold::Packet
callback(client_or_server)
callback,
to_s(io)
to_s,
write : Bytes
write
Constructor Detail
def self.new(hand : Hand, location : Vec3i, face : BlockFace, cursor : Vec3f = Vec3f.new(0.5, 0.5, 0.5), inside_block : Bool = false)
#