class Rosegold::Interactions

Defined in:

rosegold/control/interaction_use.cr
rosegold/control/interactions.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(client : Rosegold::Client) #

[View source]

Instance Method Detail

def acknowledge_use(sequence : Int32) : Nil #

[View source]
def apply_manual_input(input : ManualControl::Input) #

[View source]
def block_break_target : Vec3i | Nil #

[View source]
def block_damage_progress : Float32 #

[View source]
def clear_input #

Drops scripted attack and use intent; an active use releases on the next tick.


[View source]
def client : Client #

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

[View source]
def digging? : Bool #

[View source]
def digging_block : ReachedBlock | Nil #

[View source]
def last_hand_tap_sequence : Int32 #

[View source]
def queue_staged_action_release : Nil #

[View source]
def reset_mining #

[View source]
def reset_use #

[View source]
def start_digging #

Activates the "attack" button.


[View source]
def start_using_hand(hand : Hand | Nil = :main_hand) #

A nil hand tries the main hand, then the off hand when the main hand passes.


[View source]
def stop_digging #

Deactivates the "attack" button.


[View source]
def stop_using_hand #

[View source]
def swap_hands(session : Client::PlaySession | Nil = nil, &authorized : -> Bool) : Bool #

Sends the held-slot sync, if due, and then the swap, each only while session is current, no container is open and authorized approves under the write lock. The sync cache moves only with a written sync. Returns whether the swap was written.


[View source]
def sync_using_item(hand : Hand | Nil) : Nil #

[View source]
def tap_using_hand(hand : Hand | Nil = :main_hand) #

A nil hand tries the main hand, then the off hand when the main hand passes.


[View source]
def tick #

[View source]
def use_release_pending? : Bool #

[View source]