Package-level declarations
Types
Utilities related to BlockFace.
A Player which will throw an UnsupportedOperationException when methods which aren't supported by OfflinePlayer are called.
A task that sends the given packets to all players from getViewers every interval ticks.
A VirtualInventory implementation that does not store any items, but voids them.
Properties
The current block destroy progress of the player. Between 0 and 1 or null if the player is not breaking a block at the moment.
If the Entity's eye is underwater.
If the Player has is currently looking into an inventory. Does not detect the player's inventory itself because that is not sent to the server.
The translation key for the name of this BukkitEntity.
The NovaBlock of the NovaBlockState at the position of this Block.
The NovaBlockState at the position of this Block.
The sound group of this block, also considering custom sound groups of Nova blocks.
Functions
Adds an ItemStack to an Inventory while respecting both the max stack size of the inventory and the max stack size of the item type.
Puts an ItemStack on the prioritizedSlot or adds it to the Inventory if the given slot is occupied.
Puts an ItemStack on the prioritizedSlot or adds it to the Inventory if the given slot is occupied.
Adds items to the Player's inventory or drops them on the ground if there is not enough space.
Sends the ClientboundLevelEventPacket to all players in a 1-chunk-range, causing break particles and sounds to be played. Only works with vanilla blocks.
Checks if this Inventory contains all choices
Damages the item in the entity's main hand by damage amount.
Damages the item in the entity's offhand by damage amount.
Damages the tool in the entity's main hand as if they've attack an entity.
Damages the tool in the entity's main hand as if they've broken a block.
Gets the first slot index of the Inventory.getStorageContents that is completely empty.
Gets the first ItemStack in the Inventory.getStorageContents that is similar to type and not a full stack.
Checks if a location is inside the world borders and in the allowed building height.
Checks if an InventoryView is the player inventory
Sets the break stage for this Block. Works with Nova and vanilla blocks.
Spawns an experience orb of exp from this block after calling the BlockExpEvent.
Removes one item matching the given choice and returns it
Teleports the BukkitEntity after modifying its location using the modifyLocation lambda.