class Rosegold::DataComponents::PotionContents::PotionEffect

Overview

Potion effect structure

Defined in:

rosegold/inventory/slot.cr

Constructors

Instance Method Summary

Constructor Detail

def self.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) #

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

[View source]

Instance Method Detail

def ambient : Bool #

[View source]
def ambient=(ambient : Bool) #

[View source]
def amplifier : UInt32 #

[View source]
def amplifier=(amplifier : UInt32) #

[View source]
def duration : Int32 #

[View source]
def duration=(duration : Int32) #

[View source]
def has_hidden_effect : Bool #

[View source]
def has_hidden_effect=(has_hidden_effect : Bool) #

[View source]
def hidden_effect : PotionEffect | Nil #

[View source]
def hidden_effect=(hidden_effect : PotionEffect | Nil) #

[View source]
def show_icon : Bool #

[View source]
def show_icon=(show_icon : Bool) #

[View source]
def show_particles : Bool #

[View source]
def show_particles=(show_particles : Bool) #

[View source]
def type_id : UInt32 #

[View source]
def type_id=(type_id : UInt32) #

[View source]
def write(io) : Nil #

[View source]