Class PotionDataBuilder
java.lang.Object
studio.magemonkey.codex.legacy.item.DataBuilder
studio.magemonkey.codex.legacy.item.PotionDataBuilder
- All Implemented Interfaces:
org.bukkit.configuration.serialization.ConfigurationSerializable
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.bukkit.potion.PotionEffectTypeprotected Map<org.bukkit.potion.PotionEffectType, PotionDataBuilder.PotionData> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(org.bukkit.potion.PotionEffectType type, byte power) add(org.bukkit.potion.PotionEffectType type, byte power, int time) add(org.bukkit.potion.PotionEffectType type, byte power, int time, boolean ambient) add(org.bukkit.potion.PotionEffectType type, int time) add(org.bukkit.potion.PotionEffectType type, int power, int time) add(org.bukkit.potion.PotionEffectType type, int power, int time, boolean ambient) voidapply(org.bukkit.inventory.meta.ItemMeta itemMeta) clear()org.bukkit.potion.PotionEffectTypegetMain()Map<org.bukkit.potion.PotionEffectType, PotionDataBuilder.PotionData> getType()main(org.bukkit.potion.PotionEffectType type) potions(Map<org.bukkit.potion.PotionEffectType, PotionDataBuilder.PotionData> potions) remove(org.bukkit.potion.PotionEffectType type) static PotionDataBuilderstart()toString()use(org.bukkit.inventory.meta.ItemMeta itemMeta) Methods inherited from class studio.magemonkey.codex.legacy.item.DataBuilder
build
-
Field Details
-
potions
-
main
protected org.bukkit.potion.PotionEffectType main
-
-
Constructor Details
-
PotionDataBuilder
-
PotionDataBuilder
public PotionDataBuilder()
-
-
Method Details
-
potions
public PotionDataBuilder potions(Map<org.bukkit.potion.PotionEffectType, PotionDataBuilder.PotionData> potions) -
add
public PotionDataBuilder add(org.bukkit.potion.PotionEffectType type, byte power, int time, boolean ambient) -
add
public PotionDataBuilder add(org.bukkit.potion.PotionEffectType type, int power, int time, boolean ambient) -
add
-
add
-
add
-
add
-
remove
-
clear
-
main
-
apply
public void apply(org.bukkit.inventory.meta.ItemMeta itemMeta) - Specified by:
applyin classDataBuilder
-
use
- Specified by:
usein classDataBuilder
-
getType
- Specified by:
getTypein classDataBuilder
-
serialize
- Specified by:
serializein interfaceorg.bukkit.configuration.serialization.ConfigurationSerializable- Overrides:
serializein classDataBuilder
-
toString
-
start
-
getPotions
-
getMain
public org.bukkit.potion.PotionEffectType getMain()
-