Cloneable, ConfigurationSerializable, ItemMeta, PersistentDataHolderpublic interface CompassMeta extends ItemMeta
| Modifier and Type | Method | Description |
|---|---|---|
CompassMeta |
clone() |
|
Location |
getLodestone() |
Gets the location that this compass will point to.
|
boolean |
hasLodestone() |
Checks if this compass has been paired to a lodestone.
|
boolean |
isLodestoneTracked() |
Gets if this compass is tracking a specific lodestone.
|
void |
setLodestone(Location lodestone) |
Sets the location this lodestone compass will point to.
|
void |
setLodestoneTracked(boolean tracked) |
Sets if this compass is tracking a specific lodestone.
|
serializeaddAttributeModifier, addEnchant, addItemFlags, 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, removeAttributeModifier, removeAttributeModifier, removeAttributeModifier, removeEnchant, removeItemFlags, setAttributeModifiers, setCanDestroy, setCanPlaceOn, setCustomModelData, setDestroyableKeys, setDisplayName, setDisplayNameComponent, setLocalizedName, setLore, setLoreComponents, setPlaceableKeys, setUnbreakable, setVersiongetPersistentDataContainerboolean hasLodestone()
@Nullable Location getLodestone()
hasLodestone() first!void setLodestone(@Nullable Location lodestone)
lodestone - new location or null to clearboolean isLodestoneTracked()
void setLodestoneTracked(boolean tracked)
tracked - new tracked statusCompassMeta clone()
Copyright © 2020. All rights reserved.