Cloneable, ConfigurationSerializable, ItemMeta, PersistentDataHolderpublic interface CompassMeta extends ItemMeta
| Modifier and Type | Method | Description |
|---|---|---|
CompassMeta |
clone() |
|
@Nullable 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(@Nullable 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, getCustomModelData, getCustomTagContainer, getDisplayName, getEnchantLevel, getEnchants, getItemFlags, getLocalizedName, getLore, hasAttributeModifiers, hasConflictingEnchant, hasCustomModelData, hasDisplayName, hasEnchant, hasEnchants, hasItemFlag, hasLocalizedName, hasLore, isUnbreakable, removeAttributeModifier, removeAttributeModifier, removeAttributeModifier, removeEnchant, removeItemFlags, setAttributeModifiers, setCustomModelData, setDisplayName, setLocalizedName, setLore, setUnbreakable, setVersiongetPersistentDataContainerboolean hasLodestone()
@Nullable @Nullable Location getLodestone()
hasLodestone() first!void setLodestone(@Nullable
@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.