Interface Lidded
- All Known Subinterfaces:
Barrel, Chest, EnderChest, ShulkerBox
public interface Lidded
- Since:
- 1.16.1
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Sets the block's animated state to closed even if a player is currently viewing this block.booleanisOpen()Checks if the block's animation state.voidopen()Sets the block's animated state to open and prevents it from being closed untilclose()is called.
-
Method Details
-
open
void open()Sets the block's animated state to open and prevents it from being closed untilclose()is called.- Since:
- 1.16.1
-
close
void close()Sets the block's animated state to closed even if a player is currently viewing this block.- Since:
- 1.16.1
-
isOpen
boolean isOpen()Checks if the block's animation state.- Returns:
- true if the block's animation state is set to open.
- Since:
- 1.16.5
-