-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add
ItemBaseComponent#getLockMode
and `ItemBaseComponent#setL…
…ockMode` methods to get and set the lock mode of an item.
- Loading branch information
Showing
5 changed files
with
62 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
api/src/main/java/org/allaymc/api/item/data/ItemLockMode.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package org.allaymc.api.item.data; | ||
|
||
/** | ||
* Represents the lock mode of an item. | ||
* | ||
* @author daoge_cmd | ||
*/ | ||
public enum ItemLockMode { | ||
/** | ||
* The item is not locked. | ||
*/ | ||
NONE, | ||
/** | ||
* The item is locked in a slot. | ||
*/ | ||
LOCK_IN_SLOT, | ||
/** | ||
* The item is locked in the inventory. | ||
*/ | ||
LOCK_IN_INVENTORY | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters