Class OminousBottleMetaMock
java.lang.Object
org.mockbukkit.mockbukkit.inventory.meta.ItemMetaMock
org.mockbukkit.mockbukkit.inventory.meta.OminousBottleMetaMock
- All Implemented Interfaces:
PersistentDataViewHolder,Cloneable,ConfigurationSerializable,Damageable,ItemMeta,OminousBottleMeta,Repairable,PersistentDataHolder
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newOminousBottleMetaMock.Constructs a newOminousBottleMetaMock, cloning the data from another. -
Method Summary
Modifier and TypeMethodDescription@NotNull OminousBottleMetaMockclone()static @NotNull OminousBottleMetaMockdeserialize(@NotNull Map<String, Object> args) protected voiddeserializeInternal(@NotNull Map<String, Object> args) intbooleanSerializes the properties of an ItemMetaMock to a HashMap.voidsetAmplifier(int amplifier) Methods inherited from class org.mockbukkit.mockbukkit.inventory.meta.ItemMetaMock
addAttributeModifier, addEnchant, addItemFlags, assertComponentLore, assertHasNoLore, assertLore, assertLore, customName, customName, equals, getAsComponentString, getAsString, getAttributeModifiers, getAttributeModifiers, getAttributeModifiers, getCanDestroy, getCanPlaceOn, getCustomModelData, getCustomModelDataComponent, getCustomTagContainer, getDamage, getDamageResistant, getDestroyableKeys, getDisplayName, getDisplayNameComponent, getEnchantable, getEnchantLevel, getEnchantmentGlintOverride, getEnchants, getEquippable, getFood, getItemFlags, getItemModel, getItemName, getJukeboxPlayable, getLocalizedName, getLore, getLoreComponents, getMaxDamage, getMaxStackSize, getPersistentDataContainer, getPlaceableKeys, getRarity, getRepairCost, getTool, getTooltipStyle, getTypeName, getUseCooldown, getUseRemainder, hasAttributeModifiers, hasConflictingEnchant, hasCustomModelData, hasCustomName, hasDamage, hasDamageResistant, hasDamageValue, hasDestroyableKeys, hasEnchant, hasEnchantable, hasEnchantmentGlintOverride, hasEnchants, hasEquippable, hasFood, hashCode, hasItemFlag, hasItemModel, hasItemName, hasJukeboxPlayable, hasLocalizedName, hasLore, hasMaxDamage, hasMaxStackSize, hasPlaceableKeys, hasRarity, hasRepairCost, hasTool, hasTooltipStyle, hasUseCooldown, hasUseRemainder, isFireResistant, isGlider, isHideTooltip, isUnbreakable, itemName, itemName, lore, lore, removeAttributeModifier, removeAttributeModifier, removeAttributeModifier, removeEnchant, removeEnchantments, removeItemFlags, resetDamage, setAttributeModifiers, setCanDestroy, setCanPlaceOn, setCustomModelData, setCustomModelDataComponent, setDamage, setDamageResistant, setDestroyableKeys, setDisplayName, setDisplayNameComponent, setEnchantable, setEnchantmentGlintOverride, setEquippable, setFireResistant, setFood, setGlider, setHideTooltip, setItemModel, setItemName, setJukeboxPlayable, setLocalizedName, setLore, setLoreComponents, setMaxDamage, setMaxStackSize, setPlaceableKeys, setRarity, setRepairCost, setTool, setTooltipStyle, setUnbreakable, setUseCooldown, setUseRemainder, setVersion, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.bukkit.inventory.meta.ItemMeta
addAttributeModifier, addEnchant, addItemFlags, customName, customName, displayName, displayName, getAsComponentString, getAsString, getAttributeModifiers, getAttributeModifiers, getAttributeModifiers, getCanDestroy, getCanPlaceOn, getCustomModelData, getCustomModelDataComponent, getCustomTagContainer, getDamageResistant, getDestroyableKeys, getDisplayName, getDisplayNameComponent, getEnchantable, getEnchantLevel, getEnchantmentGlintOverride, getEnchants, getEquippable, getFood, getItemFlags, getItemModel, getItemName, getJukeboxPlayable, getLocalizedName, getLore, getLoreComponents, getMaxStackSize, getPlaceableKeys, getRarity, getTool, getTooltipStyle, getUseCooldown, getUseRemainder, hasAttributeModifiers, hasConflictingEnchant, hasCustomModelData, hasCustomName, hasDamageResistant, hasDestroyableKeys, hasDisplayName, hasEnchant, hasEnchantable, hasEnchantmentGlintOverride, hasEnchants, hasEquippable, hasFood, hasItemFlag, hasItemModel, hasItemName, hasJukeboxPlayable, hasLocalizedName, hasLore, hasMaxStackSize, hasPlaceableKeys, hasRarity, hasTool, hasTooltipStyle, hasUseCooldown, hasUseRemainder, isFireResistant, isGlider, isHideTooltip, isUnbreakable, itemName, itemName, lore, lore, removeAttributeModifier, removeAttributeModifier, removeAttributeModifier, removeEnchant, removeEnchantments, removeItemFlags, setAttributeModifiers, setCanDestroy, setCanPlaceOn, setCustomModelData, setCustomModelDataComponent, setDamageResistant, setDestroyableKeys, setDisplayName, setDisplayNameComponent, setEnchantable, setEnchantmentGlintOverride, setEquippable, setFireResistant, setFood, setGlider, setHideTooltip, setItemModel, setItemName, setJukeboxPlayable, setLocalizedName, setLore, setLoreComponents, setMaxStackSize, setPlaceableKeys, setRarity, setTool, setTooltipStyle, setUnbreakable, setUseCooldown, setUseRemainder, setVersionMethods inherited from interface org.bukkit.persistence.PersistentDataHolder
getPersistentDataContainer
-
Constructor Details
-
OminousBottleMetaMock
public OminousBottleMetaMock()Constructs a newOminousBottleMetaMock. -
OminousBottleMetaMock
Constructs a newOminousBottleMetaMock, cloning the data from another.- Parameters:
meta- The meta to clone.
-
-
Method Details
-
hasAmplifier
public boolean hasAmplifier()- Specified by:
hasAmplifierin interfaceOminousBottleMeta
-
getAmplifier
public int getAmplifier()- Specified by:
getAmplifierin interfaceOminousBottleMeta
-
setAmplifier
public void setAmplifier(int amplifier) - Specified by:
setAmplifierin interfaceOminousBottleMeta
-
clone
- Specified by:
clonein interfaceDamageable- Specified by:
clonein interfaceItemMeta- Specified by:
clonein interfaceOminousBottleMeta- Specified by:
clonein interfaceRepairable- Overrides:
clonein classItemMetaMock
-
deserializeInternal
- Overrides:
deserializeInternalin classItemMetaMock
-
deserialize
@NotNull public static @NotNull OminousBottleMetaMock deserialize(@NotNull @NotNull Map<String, Object> args) -
serialize
Description copied from class:ItemMetaMockSerializes the properties of an ItemMetaMock to a HashMap. Unimplemented properties are not present in the map.- Specified by:
serializein interfaceConfigurationSerializable- Overrides:
serializein classItemMetaMock- Returns:
- A HashMap of String, Object pairs representing the ItemMetaMock.
-