class
Rosegold::Clientbound::MerchantOffers::ItemCost
- Rosegold::Clientbound::MerchantOffers::ItemCost
- Reference
- Object
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.crConstructors
- .new(item_id : UInt32, count : UInt32 = 1_u32, components : Array(Tuple(UInt32, Rosegold::DataComponent)) = [] of ::Tuple(UInt32, Rosegold::DataComponent))
- .read(io) : self
Instance Method Summary
- #components : Array(Tuple(UInt32, Rosegold::DataComponent))
- #components=(components : Array(Tuple(UInt32, Rosegold::DataComponent)))
- #count : UInt32
- #count=(count : UInt32)
- #item_id : UInt32
- #item_id=(item_id : UInt32)
- #write(io) : Nil
Constructor Detail
def self.new(item_id : UInt32, count : UInt32 = 1_u32, components : Array(Tuple(UInt32, Rosegold::DataComponent)) = [] of ::Tuple(UInt32, Rosegold::DataComponent))
#