public class SpongePotionBuilder extends Object implements org.spongepowered.api.potion.PotionEffectBuilder
Constructor and Description |
---|
SpongePotionBuilder() |
Modifier and Type | Method and Description |
---|---|
org.spongepowered.api.potion.PotionEffectBuilder |
ambience(boolean ambience) |
org.spongepowered.api.potion.PotionEffectBuilder |
amplifier(int amplifier) |
org.spongepowered.api.potion.PotionEffect |
build() |
Optional<org.spongepowered.api.potion.PotionEffect> |
build(org.spongepowered.api.data.DataView container) |
org.spongepowered.api.potion.PotionEffectBuilder |
duration(int duration) |
org.spongepowered.api.potion.PotionEffectBuilder |
from(org.spongepowered.api.potion.PotionEffect holder) |
org.spongepowered.api.potion.PotionEffectBuilder |
particles(boolean showsParticles) |
org.spongepowered.api.potion.PotionEffectBuilder |
potionType(org.spongepowered.api.potion.PotionEffectType potionEffectType) |
public org.spongepowered.api.potion.PotionEffectBuilder from(org.spongepowered.api.potion.PotionEffect holder)
from
in interface org.spongepowered.api.potion.PotionEffectBuilder
public Optional<org.spongepowered.api.potion.PotionEffect> build(org.spongepowered.api.data.DataView container) throws org.spongepowered.api.service.persistence.InvalidDataException
build
in interface org.spongepowered.api.service.persistence.DataBuilder<org.spongepowered.api.potion.PotionEffect>
org.spongepowered.api.service.persistence.InvalidDataException
public org.spongepowered.api.potion.PotionEffectBuilder potionType(org.spongepowered.api.potion.PotionEffectType potionEffectType)
potionType
in interface org.spongepowered.api.potion.PotionEffectBuilder
public org.spongepowered.api.potion.PotionEffectBuilder duration(int duration)
duration
in interface org.spongepowered.api.potion.PotionEffectBuilder
public org.spongepowered.api.potion.PotionEffectBuilder amplifier(int amplifier) throws IllegalArgumentException
amplifier
in interface org.spongepowered.api.potion.PotionEffectBuilder
IllegalArgumentException
public org.spongepowered.api.potion.PotionEffectBuilder ambience(boolean ambience)
ambience
in interface org.spongepowered.api.potion.PotionEffectBuilder
public org.spongepowered.api.potion.PotionEffectBuilder particles(boolean showsParticles)
particles
in interface org.spongepowered.api.potion.PotionEffectBuilder
public org.spongepowered.api.potion.PotionEffect build() throws IllegalStateException
build
in interface org.spongepowered.api.potion.PotionEffectBuilder
IllegalStateException