class

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)
Source
read(io) : self
Source

Instance methods

holder_id
Source
holder_id=(holder_id : UInt32)
Source
is_holder=(is_holder : Bool)
Source
is_holder?
Source
resource_key
Source
resource_key=(resource_key : String | Nil)
Source
write(io) : Nil
Source