class Rosegold::Serverbound::PlayerBlockPlacement

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.cr

Constructors

Class Method Summary

Instance Method Summary

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) #

[View source]

Class Method Detail

def self.packet_id #

[View source]
def self.read(io) #

[View source]

Instance Method Detail

def cursor : Vec3f #

[View source]
def cursor=(cursor : Vec3f) #

[View source]
def face : BlockFace #

[View source]
def face=(face : BlockFace) #

[View source]
def hand : Hand #

[View source]
def hand=(hand : Hand) #

[View source]
def inside_block=(inside_block : Bool) #

[View source]
def inside_block? : Bool #

[View source]
def location : Vec3i #

[View source]
def location=(location : Vec3i) #

[View source]
def write : Bytes #

[View source]