class Rosegold::DataComponents::SuspiciousStewEffects

Overview

SuspiciousStewEffects - array of {MobEffect id (VarInt via holderRegistry, no inline), VarInt duration}. MobEffect.STREAM_CODEC uses ByteBufCodecs.holderRegistry which has no inline branch — id 0 is a valid registry index (minecraft:speed), so there is NO id==0-means-inline escape.

Defined in:

rosegold/inventory/slot.cr

Constructors

Instance Method Summary

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 #

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

[View source]

Instance Method Detail

def write(io) : Nil #

[View source]