#491: Add support to change block's lid state
By: jameslfc19 <jameslfc19@gmail.com>
This commit is contained in:
16
paper-api/src/main/java/org/bukkit/block/Lidded.java
Normal file
16
paper-api/src/main/java/org/bukkit/block/Lidded.java
Normal file
@@ -0,0 +1,16 @@
|
||||
package org.bukkit.block;
|
||||
|
||||
public interface Lidded {
|
||||
|
||||
/**
|
||||
* Sets the block's animated state to open and prevents it from being closed
|
||||
* until {@link #close()} is called.
|
||||
*/
|
||||
void open();
|
||||
|
||||
/**
|
||||
* Sets the block's animated state to closed even if a player is currently
|
||||
* viewing this block.
|
||||
*/
|
||||
void close();
|
||||
}
|
||||
Reference in New Issue
Block a user