Class SpawnEggMetaMock
java.lang.Object
be.seeseemelk.mockbukkit.inventory.meta.ItemMetaMock
be.seeseemelk.mockbukkit.inventory.meta.SpawnEggMetaMock
- All Implemented Interfaces:
Cloneable,org.bukkit.configuration.serialization.ConfigurationSerializable,org.bukkit.inventory.meta.Damageable,org.bukkit.inventory.meta.ItemMeta,org.bukkit.inventory.meta.Repairable,org.bukkit.inventory.meta.SpawnEggMeta,org.bukkit.persistence.PersistentDataHolder
public class SpawnEggMetaMock
extends ItemMetaMock
implements org.bukkit.inventory.meta.SpawnEggMeta
Mock implementation of an
SpawnEggMeta.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newSpawnEggMetaMock.SpawnEggMetaMock(@NotNull org.bukkit.inventory.meta.SpawnEggMeta meta) Constructs a newSpawnEggMetaMock, cloning the data from another. -
Method Summary
Modifier and TypeMethodDescription@NotNull SpawnEggMetaMockclone()boolean@Nullable org.bukkit.entity.EntityType@Nullable org.bukkit.entity.EntitySnapshotorg.bukkit.entity.EntityTypeinthashCode()voidsetCustomSpawnedType(@Nullable org.bukkit.entity.EntityType type) voidsetSpawnedEntity(@NotNull org.bukkit.entity.EntitySnapshot snapshot) voidsetSpawnedType(org.bukkit.entity.EntityType type) 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, removeEnchantments, 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, removeEnchantments, removeItemFlags, setAttributeModifiers, setCanDestroy, setCanPlaceOn, setCustomModelData, setDestroyableKeys, setDisplayName, setDisplayNameComponent, setLocalizedName, setLore, setLoreComponents, setPlaceableKeys, setUnbreakable, setVersionMethods inherited from interface org.bukkit.persistence.PersistentDataHolder
getPersistentDataContainer
-
Constructor Details
-
SpawnEggMetaMock
public SpawnEggMetaMock()Constructs a newSpawnEggMetaMock. -
SpawnEggMetaMock
public SpawnEggMetaMock(@NotNull @NotNull org.bukkit.inventory.meta.SpawnEggMeta meta) Constructs a newSpawnEggMetaMock, cloning the data from another.- Parameters:
meta- The meta to clone.
-
-
Method Details
-
getSpawnedType
public org.bukkit.entity.EntityType getSpawnedType()- Specified by:
getSpawnedTypein interfaceorg.bukkit.inventory.meta.SpawnEggMeta
-
setSpawnedType
public void setSpawnedType(org.bukkit.entity.EntityType type) - Specified by:
setSpawnedTypein interfaceorg.bukkit.inventory.meta.SpawnEggMeta
-
setSpawnedEntity
public void setSpawnedEntity(@NotNull @NotNull org.bukkit.entity.EntitySnapshot snapshot) - Specified by:
setSpawnedEntityin interfaceorg.bukkit.inventory.meta.SpawnEggMeta
-
getSpawnedEntity
@Nullable public @Nullable org.bukkit.entity.EntitySnapshot getSpawnedEntity()- Specified by:
getSpawnedEntityin interfaceorg.bukkit.inventory.meta.SpawnEggMeta
-
getCustomSpawnedType
@Nullable public @Nullable org.bukkit.entity.EntityType getCustomSpawnedType()- Specified by:
getCustomSpawnedTypein interfaceorg.bukkit.inventory.meta.SpawnEggMeta
-
setCustomSpawnedType
public void setCustomSpawnedType(@Nullable @Nullable org.bukkit.entity.EntityType type) - Specified by:
setCustomSpawnedTypein interfaceorg.bukkit.inventory.meta.SpawnEggMeta
-
hashCode
public int hashCode()- Overrides:
hashCodein classItemMetaMock
-
equals
- Overrides:
equalsin classItemMetaMock
-
clone
- Specified by:
clonein interfaceorg.bukkit.inventory.meta.Damageable- Specified by:
clonein interfaceorg.bukkit.inventory.meta.ItemMeta- Specified by:
clonein interfaceorg.bukkit.inventory.meta.Repairable- Specified by:
clonein interfaceorg.bukkit.inventory.meta.SpawnEggMeta- Overrides:
clonein classItemMetaMock
-