Class ArmorMetaMock
java.lang.Object
be.seeseemelk.mockbukkit.inventory.meta.ItemMetaMock
be.seeseemelk.mockbukkit.inventory.meta.ArmorMetaMock
- All Implemented Interfaces:
PersistentDataViewHolder,Cloneable,ConfigurationSerializable,ArmorMeta,Damageable,ItemMeta,Repairable,PersistentDataHolder
- Direct Known Subclasses:
ColorableArmorMetaMock
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull ArmorMetaMockclone()static @NotNull ArmorMetaMockdeserialize(@NotNull Map<String, Object> args) protected voiddeserializeInternal(@NotNull Map<String, Object> args) @Nullable ArmorTrimgetTrim()booleanhasTrim()Serializes the properties of an ItemMetaMock to a HashMap.voidMethods inherited from class be.seeseemelk.mockbukkit.inventory.meta.ItemMetaMock
addAttributeModifier, addEnchant, addItemFlags, assertComponentLore, assertHasNoLore, assertLore, assertLore, displayName, displayName, equals, getAsComponentString, getAsString, getAttributeModifiers, getAttributeModifiers, getAttributeModifiers, getCanDestroy, getCanPlaceOn, getCustomModelData, getCustomTagContainer, getDamage, getDestroyableKeys, getDisplayName, getDisplayNameComponent, getEnchantLevel, getEnchantmentGlintOverride, getEnchants, getFood, getItemFlags, getItemName, getJukeboxPlayable, getLocalizedName, getLore, getLoreComponents, getMaxDamage, getMaxStackSize, getPersistentDataContainer, getPlaceableKeys, getRarity, getRepairCost, getTool, getTypeName, hasAttributeModifiers, hasConflictingEnchant, hasCustomModelData, hasDamage, hasDamageValue, hasDestroyableKeys, hasDisplayName, hasEnchant, hasEnchantmentGlintOverride, hasEnchants, hasFood, hashCode, hasItemFlag, hasItemName, hasJukeboxPlayable, hasLocalizedName, hasLore, hasMaxDamage, hasMaxStackSize, hasPlaceableKeys, hasRarity, hasRepairCost, hasTool, isFireResistant, isHideTooltip, isUnbreakable, itemName, itemName, lore, lore, removeAttributeModifier, removeAttributeModifier, removeAttributeModifier, removeEnchant, removeEnchantments, removeItemFlags, resetDamage, setAttributeModifiers, setCanDestroy, setCanPlaceOn, setCustomModelData, setDamage, setDestroyableKeys, setDisplayName, setDisplayNameComponent, setEnchantmentGlintOverride, setFireResistant, setFood, setHideTooltip, setItemName, setJukeboxPlayable, setLocalizedName, setLore, setLoreComponents, setMaxDamage, setMaxStackSize, setPlaceableKeys, setRarity, setRepairCost, setTool, setUnbreakable, 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, displayName, displayName, getAsComponentString, getAsString, getAttributeModifiers, getAttributeModifiers, getAttributeModifiers, getCanDestroy, getCanPlaceOn, getCustomModelData, getCustomTagContainer, getDestroyableKeys, getDisplayName, getDisplayNameComponent, getEnchantLevel, getEnchantmentGlintOverride, getEnchants, getFood, getItemFlags, getItemName, getJukeboxPlayable, getLocalizedName, getLore, getLoreComponents, getMaxStackSize, getPlaceableKeys, getRarity, getTool, hasAttributeModifiers, hasConflictingEnchant, hasCustomModelData, hasDestroyableKeys, hasDisplayName, hasEnchant, hasEnchantmentGlintOverride, hasEnchants, hasFood, hasItemFlag, hasItemName, hasJukeboxPlayable, hasLocalizedName, hasLore, hasMaxStackSize, hasPlaceableKeys, hasRarity, hasTool, isFireResistant, isHideTooltip, isUnbreakable, itemName, itemName, lore, lore, removeAttributeModifier, removeAttributeModifier, removeAttributeModifier, removeEnchant, removeEnchantments, removeItemFlags, setAttributeModifiers, setCanDestroy, setCanPlaceOn, setCustomModelData, setDestroyableKeys, setDisplayName, setDisplayNameComponent, setEnchantmentGlintOverride, setFireResistant, setFood, setHideTooltip, setItemName, setJukeboxPlayable, setLocalizedName, setLore, setLoreComponents, setMaxStackSize, setPlaceableKeys, setRarity, setTool, setUnbreakable, setVersionMethods inherited from interface org.bukkit.persistence.PersistentDataHolder
getPersistentDataContainer
-
Constructor Details
-
ArmorMetaMock
public ArmorMetaMock()
-
-
Method Details
-
hasTrim
public boolean hasTrim() -
setTrim
-
getTrim
-
clone
- Specified by:
clonein interfaceArmorMeta- Specified by:
clonein interfaceDamageable- Specified by:
clonein interfaceItemMeta- Specified by:
clonein interfaceRepairable- Overrides:
clonein classItemMetaMock
-
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.
-
deserializeInternal
- Overrides:
deserializeInternalin classItemMetaMock
-
deserialize
@NotNull public static @NotNull ArmorMetaMock deserialize(@NotNull @NotNull Map<String, Object> args)
-