Rosegold::DataComponents::EitherHolderComponent
Inherits Rosegold::DataComponent / Reference / Object
EitherHolder (1.21.11) - boolean discriminator + either VarInt (registry) or Identifier (resource key)
Constructors
new(is_holder : Bool = true, holder_id : UInt32 = 0_u32, resource_key : Nil | String = nil)
Sourceread(io) : self
SourceInstance methods
holder_id
Sourceholder_id=(holder_id : UInt32)
Sourceis_holder=(is_holder : Bool)
Sourceis_holder?
Sourceresource_key
Sourceresource_key=(resource_key : String | Nil)
Sourcewrite(io) : Nil
Source