Class BoxStickItem
java.lang.Object
net.okocraft.box.feature.stick.item.BoxStickItem
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if theItemStackis a Box Stick.booleaninthashCode()@NotNull NamespacedKeykey()Gets theNamespacedKeythat is used for saving data toPersistentDataContainer.voidonRightClick(@NotNull Consumer<Player> onRightClick) Sets the action called when thePlayerright-clicked.voidonRightClick(@NotNull Player player) Calls the action of right-clickvoidsaveBoxStickKey(@NotNull PersistentDataContainer target) Saves thekey()toPersistentDataContainertoString()
-
Constructor Details
-
BoxStickItem
The constructor ofBoxStickItem.- Parameters:
key- theNamespacedKeyto use for representing that the item is a Box Stick
-
-
Method Details
-
saveBoxStickKey
Saves thekey()toPersistentDataContainer- Parameters:
target- the targetPersistentDataContainer
-
check
-
key
Gets theNamespacedKeythat is used for saving data toPersistentDataContainer.- Returns:
- the
NamespacedKeythat is used for saving data toPersistentDataContainer
-
onRightClick
-
onRightClick
-
equals
-
hashCode
-
toString
-