Class SpawnEggMetaMock
java.lang.Object
be.seeseemelk.mockbukkit.inventory.meta.ItemMetaMock
be.seeseemelk.mockbukkit.inventory.meta.SpawnEggMetaMock
- All Implemented Interfaces:
PersistentDataViewHolder,Cloneable,ConfigurationSerializable,Damageable,ItemMeta,Repairable,SpawnEggMeta,PersistentDataHolder
Mock implementation of an
SpawnEggMeta.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newSpawnEggMetaMock.SpawnEggMetaMock(@NotNull SpawnEggMeta meta) Constructs a newSpawnEggMetaMock, cloning the data from another. -
Method Summary
Modifier and TypeMethodDescription@NotNull SpawnEggMetaMockclone()static @NotNull SpawnEggMetaMockdeserialize(@NotNull Map<String, Object> args) Required method for Bukkit deserialization.boolean@Nullable EntityType@Nullable EntitySnapshotprotected StringinthashCode()voidsetCustomSpawnedType(@Nullable EntityType type) voidsetSpawnedEntity(@NotNull EntitySnapshot snapshot) voidsetSpawnedType(EntityType type) Methods inherited from class be.seeseemelk.mockbukkit.inventory.meta.ItemMetaMock
addAttributeModifier, addEnchant, addItemFlags, assertComponentLore, assertHasNoLore, assertLore, assertLore, deserializeInternal, displayName, displayName, 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, hasAttributeModifiers, hasConflictingEnchant, hasCustomModelData, hasDamage, hasDamageValue, hasDestroyableKeys, hasDisplayName, hasEnchant, hasEnchantmentGlintOverride, hasEnchants, hasFood, 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, serialize, 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.configuration.serialization.ConfigurationSerializable
serializeMethods 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
-
SpawnEggMetaMock
public SpawnEggMetaMock()Constructs a newSpawnEggMetaMock. -
SpawnEggMetaMock
Constructs a newSpawnEggMetaMock, cloning the data from another.- Parameters:
meta- The meta to clone.
-
-
Method Details
-
getSpawnedType
- Specified by:
getSpawnedTypein interfaceSpawnEggMeta
-
setSpawnedType
- Specified by:
setSpawnedTypein interfaceSpawnEggMeta
-
setSpawnedEntity
- Specified by:
setSpawnedEntityin interfaceSpawnEggMeta
-
getSpawnedEntity
- Specified by:
getSpawnedEntityin interfaceSpawnEggMeta
-
getCustomSpawnedType
- Specified by:
getCustomSpawnedTypein interfaceSpawnEggMeta
-
setCustomSpawnedType
- Specified by:
setCustomSpawnedTypein interfaceSpawnEggMeta
-
hashCode
public int hashCode()- Overrides:
hashCodein classItemMetaMock
-
equals
- Overrides:
equalsin classItemMetaMock
-
clone
- Specified by:
clonein interfaceDamageable- Specified by:
clonein interfaceItemMeta- Specified by:
clonein interfaceRepairable- Specified by:
clonein interfaceSpawnEggMeta- Overrides:
clonein classItemMetaMock
-
deserialize
@NotNull public static @NotNull SpawnEggMetaMock deserialize(@NotNull @NotNull Map<String, Object> args) Required method for Bukkit deserialization.- Parameters:
args- A serialized SpawnEggMetaMock object in a Map<String, Object> format.- Returns:
- A new instance of the SpawnEggMetaMock class.
-
getTypeName
- Overrides:
getTypeNamein classItemMetaMock
-