PotionEffectBuilder

class PotionEffectBuilder(amplifier: Int? = null, duration: Duration? = null, type: PotionEffectType? = null, ambient: Boolean? = false, particles: Boolean? = null, icon: Boolean? = null, tag: OriginNamespacedTag? = null) : CachingBuilder<PotionEffect>

Constructors

Link copied to clipboard
fun PotionEffectBuilder(amplifier: Int? = null, duration: Duration? = null, type: PotionEffectType? = null, ambient: Boolean? = false, particles: Boolean? = null, icon: Boolean? = null, tag: OriginNamespacedTag? = null)

Functions

Link copied to clipboard
operator override fun equals(other: Any?): Boolean
Link copied to clipboard
fun get(): PotionEffect

Returns the cached T instance, or creates a new one if it is dirty.

Link copied to clipboard
override fun hashCode(): Int
Link copied to clipboard
operator fun invoke(entity: LivingEntity)
Link copied to clipboard
override fun toString(): String

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var type: PotionEffectType

Extensions