public interface CompassMeta extends ItemMeta
Modifier and Type | Method and 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.
|
addAttributeModifier, addEnchant, addItemFlags, displayName, displayName, 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, removeItemFlags, setAttributeModifiers, setCanDestroy, setCanPlaceOn, setCustomModelData, setDestroyableKeys, setDisplayName, setDisplayNameComponent, setLocalizedName, setLore, setLoreComponents, setPlaceableKeys, setUnbreakable, setVersion
serialize
getPersistentDataContainer
boolean 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 © 2021. All rights reserved.