mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-06 15:12:13 -07:00
Add BlockStateMeta#clearBlockState
This commit is contained in:
@@ -14,6 +14,13 @@ public interface BlockStateMeta extends ItemMeta {
|
|||||||
*/
|
*/
|
||||||
boolean hasBlockState();
|
boolean hasBlockState();
|
||||||
|
|
||||||
|
// Paper start - add method to clear block state
|
||||||
|
/**
|
||||||
|
* Clears the block state currently attached to this item.
|
||||||
|
*/
|
||||||
|
void clearBlockState();
|
||||||
|
// Paper end - add method to clear block state
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the currently attached block state for this
|
* Returns the currently attached block state for this
|
||||||
* item or creates a new one if one doesn't exist.
|
* item or creates a new one if one doesn't exist.
|
||||||
|
Reference in New Issue
Block a user