Class FireworkMetaMock
java.lang.Object
be.seeseemelk.mockbukkit.inventory.meta.ItemMetaMock
be.seeseemelk.mockbukkit.inventory.meta.FireworkMetaMock
- All Implemented Interfaces:
Cloneable,ConfigurationSerializable,Damageable,FireworkMeta,ItemMeta,Repairable,PersistentDataHolder
Mock implementation of an
FireworkMeta.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newFireworkMetaMock.FireworkMetaMock(@NotNull FireworkMeta meta) Constructs a newFireworkMetaMock, cloning the data from another. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEffect(@NotNull FireworkEffect effect) voidaddEffects(@NotNull Iterable<FireworkEffect> effects) voidaddEffects(@NotNull FireworkEffect @NotNull ... effects) void@NotNull FireworkMetaMockclone()boolean@NotNull List<FireworkEffect>intintgetPower()booleaninthashCode()voidremoveEffect(int index) voidsetPower(int power) Methods inherited from class be.seeseemelk.mockbukkit.inventory.meta.ItemMetaMock
addAttributeModifier, addEnchant, addItemFlags, assertComponentLore, assertHasNoLore, assertLore, assertLore, deserialize, displayName, displayName, getAsString, getAttributeModifiers, getAttributeModifiers, getAttributeModifiers, getCanDestroy, getCanPlaceOn, getCustomModelData, getCustomTagContainer, getDamage, getDestroyableKeys, getDisplayName, getDisplayNameComponent, getEnchantLevel, getEnchants, getItemFlags, getLocalizedName, getLore, getLoreComponents, getPersistentDataContainer, getPlaceableKeys, getRepairCost, hasAttributeModifiers, hasConflictingEnchant, hasCustomModelData, hasDamage, hasDestroyableKeys, hasDisplayName, hasEnchant, hasEnchants, hasItemFlag, hasLocalizedName, hasLore, hasPlaceableKeys, hasRepairCost, isUnbreakable, lore, lore, removeAttributeModifier, removeAttributeModifier, removeAttributeModifier, removeEnchant, removeItemFlags, serialize, setAttributeModifiers, setCanDestroy, setCanPlaceOn, setCustomModelData, setDamage, setDestroyableKeys, setDisplayName, setDisplayNameComponent, setLocalizedName, setLore, setLoreComponents, setPlaceableKeys, setRepairCost, setUnbreakable, setVersionMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bukkit.configuration.serialization.ConfigurationSerializable
serializeMethods inherited from interface org.bukkit.inventory.meta.ItemMeta
addAttributeModifier, addEnchant, addItemFlags, displayName, displayName, getAsString, getAttributeModifiers, getAttributeModifiers, getAttributeModifiers, getCanDestroy, getCanPlaceOn, getCustomModelData, getCustomTagContainer, getDestroyableKeys, getDisplayName, getDisplayNameComponent, getEnchantLevel, getEnchants, getItemFlags, getLocalizedName, getLore, getLoreComponents, getPlaceableKeys, hasAttributeModifiers, hasConflictingEnchant, hasCustomModelData, hasDestroyableKeys, hasDisplayName, hasEnchant, hasEnchants, hasItemFlag, hasLocalizedName, hasLore, hasPlaceableKeys, isUnbreakable, lore, lore, removeAttributeModifier, removeAttributeModifier, removeAttributeModifier, removeEnchant, removeItemFlags, setAttributeModifiers, setCanDestroy, setCanPlaceOn, setCustomModelData, setDestroyableKeys, setDisplayName, setDisplayNameComponent, setLocalizedName, setLore, setLoreComponents, setPlaceableKeys, setUnbreakable, setVersionMethods inherited from interface org.bukkit.persistence.PersistentDataHolder
getPersistentDataContainer
-
Constructor Details
-
FireworkMetaMock
public FireworkMetaMock()Constructs a newFireworkMetaMock. -
FireworkMetaMock
Constructs a newFireworkMetaMock, cloning the data from another.- Parameters:
meta- The meta to clone.
-
-
Method Details
-
hashCode
public int hashCode()- Overrides:
hashCodein classItemMetaMock
-
equals
- Overrides:
equalsin classItemMetaMock
-
clone
- Specified by:
clonein interfaceDamageable- Specified by:
clonein interfaceFireworkMeta- Specified by:
clonein interfaceItemMeta- Specified by:
clonein interfaceRepairable- Overrides:
clonein classItemMetaMock
-
addEffect
- Specified by:
addEffectin interfaceFireworkMeta
-
addEffects
- Specified by:
addEffectsin interfaceFireworkMeta
-
addEffects
- Specified by:
addEffectsin interfaceFireworkMeta
-
getEffects
- Specified by:
getEffectsin interfaceFireworkMeta
-
getEffectsSize
public int getEffectsSize()- Specified by:
getEffectsSizein interfaceFireworkMeta
-
removeEffect
public void removeEffect(int index) - Specified by:
removeEffectin interfaceFireworkMeta
-
clearEffects
public void clearEffects()- Specified by:
clearEffectsin interfaceFireworkMeta
-
hasEffects
public boolean hasEffects()- Specified by:
hasEffectsin interfaceFireworkMeta
-
getPower
public int getPower()- Specified by:
getPowerin interfaceFireworkMeta
-
setPower
public void setPower(int power) - Specified by:
setPowerin interfaceFireworkMeta
-