class

Rosegold::HashedSlot

Inherits Reference / Object

Hashed slot format used in ClickContainer packet

Constructors

from_slot(slot : Slot) : HashedSlot
Source
from_window_slot(window_slot : WindowSlot) : HashedSlot
Source
new(has_item : Bool = false, item_id_int : UInt32 = 0_u32, count : UInt32 = 0_u32, components_to_add : Hash(String, UInt32) = Hash(String, UInt32).new, components_to_remove : Set(String) = Set(String).new)
Source

Instance methods

components_to_add
Source
components_to_add=(components_to_add : Hash(String, UInt32))
Source
components_to_remove
Source
components_to_remove=(components_to_remove : Set(String))
Source
count
Source
count=(count : UInt32)
Source
empty?
Source
has_item=(has_item : Bool)
Source
has_item?
Source
item_id_int
Source
item_id_int=(item_id_int : UInt32)
Source
present?
Source
write(io)
Source