class

Rosegold::DataComponents::PotionContents::PotionEffect

Inherits Reference / Object

Potion effect structure

Constructors

new(type_id : UInt32, amplifier : UInt32, duration : Int32, ambient : Bool = false, show_particles : Bool = true, show_icon : Bool = true, has_hidden_effect : Bool = false, hidden_effect : Nil | Rosegold::DataComponents::PotionContents::PotionEffect = nil)
Source
read(io) : PotionEffect

Outer PotionEffect wire format = MobEffect Holder (VarInt) + Details. Details recursion on hidden_effect is into Details only (no repeat of the leading MobEffect VarInt). See MobEffectInstance.java Details.STREAM_CODEC.

Source
read_details(io, type_id : UInt32) : PotionEffect
Source

Instance methods

ambient=(ambient : Bool)
Source
ambient?
Source
amplifier
Source
amplifier=(amplifier : UInt32)
Source
duration
Source
duration=(duration : Int32)
Source
has_hidden_effect=(has_hidden_effect : Bool)
Source
has_hidden_effect?
Source
hidden_effect
Source
hidden_effect=(hidden_effect : PotionEffect | Nil)
Source
show_icon=(show_icon : Bool)
Source
show_icon?
Source
show_particles=(show_particles : Bool)
Source
show_particles?
Source
type_id
Source
type_id=(type_id : UInt32)
Source
write(io) : Nil
Source
write_details(io) : Nil
Source