Class CompassMetaMock
java.lang.Object
be.seeseemelk.mockbukkit.inventory.meta.ItemMetaMock
be.seeseemelk.mockbukkit.inventory.meta.CompassMetaMock
- All Implemented Interfaces:
io.papermc.paper.persistence.PersistentDataViewHolder,Cloneable,org.bukkit.configuration.serialization.ConfigurationSerializable,org.bukkit.inventory.meta.CompassMeta,org.bukkit.inventory.meta.Damageable,org.bukkit.inventory.meta.ItemMeta,org.bukkit.inventory.meta.Repairable,org.bukkit.persistence.PersistentDataHolder
Mock implementation of a
CompassMeta.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newCompassMetaMock.CompassMetaMock(@NotNull org.bukkit.inventory.meta.CompassMeta meta) Constructs a newCompassMetaMock, cloning the data from another. -
Method Summary
Modifier and TypeMethodDescriptionvoid@NotNull CompassMetaMockclone()static @NotNull CompassMetaMockdeserialize(@NotNull Map<String, Object> args) Required method for Bukkit deserialization.boolean@Nullable org.bukkit.Locationprotected StringinthashCode()booleanbooleanbooleanSerializes the properties of an CompassMetaMock to a HashMap.voidsetLodestone(@Nullable org.bukkit.Location lodestone) voidsetLodestoneTracked(boolean tracked) 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, 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
-
CompassMetaMock
public CompassMetaMock()Constructs a newCompassMetaMock. -
CompassMetaMock
public CompassMetaMock(@NotNull @NotNull org.bukkit.inventory.meta.CompassMeta meta) Constructs a newCompassMetaMock, cloning the data from another.- Parameters:
meta- The meta to clone.
-
-
Method Details
-
hasLodestone
public boolean hasLodestone()- Specified by:
hasLodestonein interfaceorg.bukkit.inventory.meta.CompassMeta
-
getLodestone
@Nullable public @Nullable org.bukkit.Location getLodestone()- Specified by:
getLodestonein interfaceorg.bukkit.inventory.meta.CompassMeta
-
setLodestone
public void setLodestone(@Nullable @Nullable org.bukkit.Location lodestone) - Specified by:
setLodestonein interfaceorg.bukkit.inventory.meta.CompassMeta
-
isLodestoneTracked
public boolean isLodestoneTracked()- Specified by:
isLodestoneTrackedin interfaceorg.bukkit.inventory.meta.CompassMeta
-
setLodestoneTracked
public void setLodestoneTracked(boolean tracked) - Specified by:
setLodestoneTrackedin interfaceorg.bukkit.inventory.meta.CompassMeta
-
isLodestoneCompass
public boolean isLodestoneCompass()- Specified by:
isLodestoneCompassin interfaceorg.bukkit.inventory.meta.CompassMeta
-
clearLodestone
public void clearLodestone()- Specified by:
clearLodestonein interfaceorg.bukkit.inventory.meta.CompassMeta
-
hashCode
public int hashCode()- Overrides:
hashCodein classItemMetaMock
-
equals
- Overrides:
equalsin classItemMetaMock
-
clone
- Specified by:
clonein interfaceorg.bukkit.inventory.meta.CompassMeta- Specified by:
clonein interfaceorg.bukkit.inventory.meta.Damageable- Specified by:
clonein interfaceorg.bukkit.inventory.meta.ItemMeta- Specified by:
clonein interfaceorg.bukkit.inventory.meta.Repairable- Overrides:
clonein classItemMetaMock
-
deserialize
@NotNull public static @NotNull CompassMetaMock deserialize(@NotNull @NotNull Map<String, Object> args) Required method for Bukkit deserialization.- Parameters:
args- A serialized CompassMetaMock object in a Map<String, Object> format.- Returns:
- A new instance of the CompassMetaMock class.
-
serialize
Serializes the properties of an CompassMetaMock to a HashMap. Unimplemented properties are not present in the map.- Specified by:
serializein interfaceorg.bukkit.configuration.serialization.ConfigurationSerializable- Overrides:
serializein classItemMetaMock- Returns:
- A HashMap of String, Object pairs representing the CompassMetaMock.
-
getTypeName
- Overrides:
getTypeNamein classItemMetaMock
-