class
Rosegold::DataComponents::EitherHolderComponent
Overview
EitherHolder (1.21.11) - boolean discriminator + either VarInt (registry) or Identifier (resource key)
Defined in:
rosegold/inventory/slot.crConstructors
- .new(is_holder : Bool = true, holder_id : UInt32 = 0_u32, resource_key : Nil | String = nil)
- .read(io) : self
Instance Method Summary
- #holder_id : UInt32
- #holder_id=(holder_id : UInt32)
- #is_holder=(is_holder : Bool)
- #is_holder? : Bool
- #resource_key : String | Nil
- #resource_key=(resource_key : String | Nil)
- #write(io) : Nil
Instance methods inherited from class Rosegold::DataComponent
write(io) : Nil
write
Constructor methods inherited from class Rosegold::DataComponent
create_component(component_type : UInt32, io) : DataComponent
create_component,
create_component_by_name(name : String | Nil, component_type : UInt32, io) : DataComponent
create_component_by_name
Constructor Detail
def self.new(is_holder : Bool = true, holder_id : UInt32 = 0_u32, resource_key : Nil | String = nil)
#