Class MapMetaMock
java.lang.Object
be.seeseemelk.mockbukkit.inventory.meta.ItemMetaMock
be.seeseemelk.mockbukkit.inventory.meta.MapMetaMock
- All Implemented Interfaces:
PersistentDataViewHolder,Cloneable,ConfigurationSerializable,Damageable,ItemMeta,MapMeta,Repairable,PersistentDataHolder
Mock implementation of an
MapMeta.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newMapMetaMock.MapMetaMock(@NotNull MapMeta meta) Constructs a newMapMetaMock, cloning the data from another. -
Method Summary
Modifier and TypeMethodDescription@NotNull MapMetaMockclone()static @NotNull MapMetaMockdeserialize(@NotNull Map<String, Object> args) Required method for Bukkit deserialization.boolean@Nullable ColorgetColor()@Nullable StringintgetMapId()@Nullable MapViewprotected StringbooleanhasColor()inthashCode()booleanbooleanhasMapId()booleanbooleanSerializes the properties of an MapMetaMock to a HashMap.voidvoidsetLocationName(@Nullable String name) voidsetMapId(int id) voidsetMapView(MapView map) voidsetScaling(boolean scaling) 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
-
MapMetaMock
public MapMetaMock()Constructs a newMapMetaMock. -
MapMetaMock
Constructs a newMapMetaMock, cloning the data from another.- Parameters:
meta- The meta to clone.
-
-
Method Details
-
hasMapId
public boolean hasMapId() -
getMapId
public int getMapId() -
setMapId
public void setMapId(int id) -
hasMapView
public boolean hasMapView()- Specified by:
hasMapViewin interfaceMapMeta
-
getMapView
- Specified by:
getMapViewin interfaceMapMeta
-
setMapView
- Specified by:
setMapViewin interfaceMapMeta
-
isScaling
public boolean isScaling() -
setScaling
public void setScaling(boolean scaling) - Specified by:
setScalingin interfaceMapMeta
-
hasLocationName
public boolean hasLocationName()- Specified by:
hasLocationNamein interfaceMapMeta
-
getLocationName
- Specified by:
getLocationNamein interfaceMapMeta
-
setLocationName
- Specified by:
setLocationNamein interfaceMapMeta
-
hasColor
public boolean hasColor() -
getColor
-
setColor
-
hashCode
public int hashCode()- Overrides:
hashCodein classItemMetaMock
-
equals
- Overrides:
equalsin classItemMetaMock
-
clone
- Specified by:
clonein interfaceDamageable- Specified by:
clonein interfaceItemMeta- Specified by:
clonein interfaceMapMeta- Specified by:
clonein interfaceRepairable- Overrides:
clonein classItemMetaMock
-
deserialize
Required method for Bukkit deserialization.- Parameters:
args- A serialized MapMetaMock object in a Map<String, Object> format.- Returns:
- A new instance of the MapMetaMock class.
-
serialize
Serializes the properties of an MapMetaMock 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 MapMetaMock.
-
getTypeName
- Overrides:
getTypeNamein classItemMetaMock
-