class Rosegold::Clientbound::MerchantOffers::ItemCost

Overview

A price stack for a trade: item id + count plus a DataComponentExactPredicate (a flat list of required components; no partial-predicate map).

Defined in:

rosegold/packets/clientbound/merchant_offers.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(item_id : UInt32, count : UInt32 = 1_u32, components : Array(Tuple(UInt32, Rosegold::DataComponent)) = [] of ::Tuple(UInt32, Rosegold::DataComponent)) #

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

[View source]

Instance Method Detail

def components : Array(Tuple(UInt32, Rosegold::DataComponent)) #

[View source]
def components=(components : Array(Tuple(UInt32, Rosegold::DataComponent))) #

[View source]
def count : UInt32 #

[View source]
def count=(count : UInt32) #

[View source]
def item_id : UInt32 #

[View source]
def item_id=(item_id : UInt32) #

[View source]
def write(io) : Nil #

[View source]