Bookshelf | Store Books Inside! | Enchantment Table Boosting | Supports Protection Plugins icon

Bookshelf | Store Books Inside! | Enchantment Table Boosting | Supports Protection Plugins -----

Store Books in bookshelves with effect and sounds, with support for multiple other plugins!



API and Events (2.1.0)
- Added an API
- Bookshelves exchanging items with hoppers will now fire InventoryMoveItemEvent


Here is a simple method that opens the inventory of a bookshelf for a player without the player to clicking the bookshelf:
Code (Java):
public void openBookshelForPlayer (Block bookshelfBlock, Player player ) {
    //Get the location of the bookshelf Block
   Location location = bookshelfBlock. getLocation ( ) ;
    //Check if the bookshelf is loaded through the API
    if (BookshelfAPI. isBookshelfLoaded (location ) ) {
        //Get the inventory of that bookshelf through the API
       Inventory inventory = BookshelfAPI. getBookshelfInventory (location ) ;
        //Open the bookshelf
       player. openInventory (inventory ) ;
    }
}
----------, Mar 19, 2020
Resource Information
Author:
----------
Total Downloads: 12,261
First Release: Mar 7, 2020
Last Update: Dec 13, 2024
Category: ---------------
All-Time Rating:
34 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings