public class SpongePotionBuilder extends Object implements org.spongepowered.api.potion.PotionEffectBuilder
Constructor and Description |
---|
SpongePotionBuilder() |
Modifier and Type | Method and Description |
---|---|
<I extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator<I,?>> |
add(I manipulator) |
<M extends org.spongepowered.api.data.manipulator.DataManipulator<M,?>> |
add(M manipulator) |
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) |
org.spongepowered.api.potion.PotionEffectBuilder |
reset() |
public <M extends org.spongepowered.api.data.manipulator.DataManipulator<M,?>> org.spongepowered.api.potion.PotionEffectBuilder add(M manipulator)
add
in interface org.spongepowered.api.data.ImmutableDataBuilder<org.spongepowered.api.potion.PotionEffect,org.spongepowered.api.potion.PotionEffectBuilder>
public <I extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator<I,?>> org.spongepowered.api.potion.PotionEffectBuilder add(I manipulator)
add
in interface org.spongepowered.api.data.ImmutableDataBuilder<org.spongepowered.api.potion.PotionEffect,org.spongepowered.api.potion.PotionEffectBuilder>
public org.spongepowered.api.potion.PotionEffectBuilder from(org.spongepowered.api.potion.PotionEffect holder)
from
in interface org.spongepowered.api.data.ImmutableDataBuilder<org.spongepowered.api.potion.PotionEffect,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.PotionEffectBuilder reset()
reset
in interface org.spongepowered.api.data.ImmutableDataBuilder<org.spongepowered.api.potion.PotionEffect,org.spongepowered.api.potion.PotionEffectBuilder>
reset
in interface org.spongepowered.api.potion.PotionEffectBuilder
public org.spongepowered.api.potion.PotionEffect build() throws IllegalStateException
build
in interface org.spongepowered.api.data.ImmutableDataBuilder<org.spongepowered.api.potion.PotionEffect,org.spongepowered.api.potion.PotionEffectBuilder>
build
in interface org.spongepowered.api.potion.PotionEffectBuilder
IllegalStateException