Index
All Classes and Interfaces|All Packages
A
- addAndUpdateViewer(Player) - Method in class net.bitbylogic.packetblocks.block.PacketBlock
-
Adds the specified player as a viewer to this Packet Block if they are not already added and updates their block state to reflect the current state of the Packet Block.
- addAndUpdateViewer(Player, Supplier<BlockData>) - Method in class net.bitbylogic.packetblocks.block.PacketBlock
-
Adds a viewer for the block data and sends an update to the specified player.
- addEntry(Player, PacketBlock) - Method in class net.bitbylogic.packetblocks.task.PacketBlockAnimationTask
- addMetadata(String, Object) - Method in class net.bitbylogic.packetblocks.block.PacketBlock
-
Adds metadata to the PacketBlock.
- addMetadata(String, Object) - Method in class net.bitbylogic.packetblocks.block.PacketBlockPlayerData
-
Adds a metadata entry with the specified key and object.
- addMetadata(Player, String, Object) - Method in class net.bitbylogic.packetblocks.block.PacketBlock
-
Adds a metadata key-value pair to the specific player's
PacketBlockPlayerData
, if the player is a viewer. - addViewCondition(Predicate<Player>) - Method in class net.bitbylogic.packetblocks.block.PacketBlock
-
Adds a viewing condition to the list of conditions if it is not already present.
- addViewer(Player) - Method in class net.bitbylogic.packetblocks.block.PacketBlock
-
Adds the specified player as a viewer to this Packet Block.
- addViewer(Player, Supplier<BlockData>) - Method in class net.bitbylogic.packetblocks.block.PacketBlock
-
Adds a viewer to this Packet Block with a custom BlockData supplier.
- attemptAddViewer(Player, boolean) - Method in class net.bitbylogic.packetblocks.block.PacketBlock
-
Attempts to add the specified player as a viewer to this Packet Block if they meet the viewing conditions.
B
- BlockAnimationContext - Class in net.bitbylogic.packetblocks.task
- BlockAnimationContext(PacketBlock) - Constructor for class net.bitbylogic.packetblocks.task.BlockAnimationContext
- BlockBreakAdapter - Class in net.bitbylogic.packetblocks.adapter
- BlockBreakAdapter(PacketBlockManager) - Constructor for class net.bitbylogic.packetblocks.adapter.BlockBreakAdapter
- BlockPlaceAdapter - Class in net.bitbylogic.packetblocks.adapter
- BlockPlaceAdapter() - Constructor for class net.bitbylogic.packetblocks.adapter.BlockPlaceAdapter
- BlockUpdateAdapter - Class in net.bitbylogic.packetblocks.adapter
- BlockUpdateAdapter() - Constructor for class net.bitbylogic.packetblocks.adapter.BlockUpdateAdapter
- BoundingBoxes - Class in net.bitbylogic.packetblocks.util
- BoundingBoxes() - Constructor for class net.bitbylogic.packetblocks.util.BoundingBoxes
C
- canView(Player) - Method in class net.bitbylogic.packetblocks.block.PacketBlock
-
Checks if the specified player meets all the conditions required to view this Packet Block.
- ChunkLoadAdapter - Class in net.bitbylogic.packetblocks.adapter
- ChunkLoadAdapter() - Constructor for class net.bitbylogic.packetblocks.adapter.ChunkLoadAdapter
- createBlock(Location, BlockData) - Method in class net.bitbylogic.packetblocks.block.PacketBlockManager
-
Creates a new
PacketBlock
instance at the specified location with the given block data.
G
- getBlock(Location) - Method in class net.bitbylogic.packetblocks.block.PacketBlockManager
- getBlocks(World) - Method in class net.bitbylogic.packetblocks.block.PacketBlockManager
-
Retrieves a list of
PacketBlock
instances associated with the specified world. - getBlocks(World, int, int) - Method in class net.bitbylogic.packetblocks.block.PacketBlockManager
-
Retrieves a list of
PacketBlock
instances located within the specified chunk in the given world. - getBlocksByMetadata(String) - Method in class net.bitbylogic.packetblocks.block.PacketBlockManager
-
Retrieves a list of
PacketBlock
instances that contain the specified metadata key. - getBlocksByViewer(Player) - Method in class net.bitbylogic.packetblocks.block.PacketBlockManager
-
Retrieves a list of
PacketBlock
instances that are visible to the specified player. - getBlocksByViewerWithMeta(Player, String) - Method in class net.bitbylogic.packetblocks.block.PacketBlockManager
-
Retrieves a list of
PacketBlock
instances that are visible to the specified player and contain the specified metadata key. - getBlockState(Player) - Method in class net.bitbylogic.packetblocks.block.PacketBlock
-
Retrieves the BlockState associated with a specific player.
- getBlockType(Player, Location) - Static method in class net.bitbylogic.packetblocks.util.PacketBlockUtil
-
Retrieves the material type of the block at a specific location for a given player.
- getBox(Material) - Static method in class net.bitbylogic.packetblocks.util.BoundingBoxes
-
Retrieves the
BoundingBox
associated with the specifiedMaterial
. - getBoxAt(Material, Location) - Static method in class net.bitbylogic.packetblocks.util.BoundingBoxes
-
Retrieves a
BoundingBox
at the specified location for the given material. - getBreakSpeed(Player) - Method in class net.bitbylogic.packetblocks.block.PacketBlock
-
Calculates and retrieves the break speed for the given player.
- getChunksInBoundingBox(World, BoundingBox) - Method in class net.bitbylogic.packetblocks.block.PacketBlockManager
-
Retrieves all chunks that intersect with the provided bounding box in the given world.
- getHandlerList() - Static method in class net.bitbylogic.packetblocks.event.PacketBlockBreakEvent
- getHandlerList() - Static method in class net.bitbylogic.packetblocks.event.PacketBlockStartBreakEvent
- getHandlers() - Method in class net.bitbylogic.packetblocks.event.PacketBlockBreakEvent
- getHandlers() - Method in class net.bitbylogic.packetblocks.event.PacketBlockStartBreakEvent
- getHitBlocks(World, BoundingBox) - Method in class net.bitbylogic.packetblocks.block.PacketBlockManager
-
Retrieves a list of
PacketBlock
instances that intersect with the specified bounding box within a given world. - getHitBlocksByViewer(Player, BoundingBox) - Method in class net.bitbylogic.packetblocks.block.PacketBlockManager
-
Retrieves a list of
PacketBlock
instances that are visible to the specified player and overlap with the given bounding box. - getHitBlocksByViewerWithMeta(Player, BoundingBox, String) - Method in class net.bitbylogic.packetblocks.block.PacketBlockManager
-
Retrieves a list of
PacketBlock
instances that are within a specified bounding box, are visible to the specified player, and contain the given metadata key. - getMetadata(String) - Method in class net.bitbylogic.packetblocks.block.PacketBlock
-
Retrieves the metadata value associated with the specified key.
- getMetadata(String) - Method in class net.bitbylogic.packetblocks.block.PacketBlockPlayerData
-
Retrieves the metadata associated with the specified key.
- getMetadata(String, Object) - Method in class net.bitbylogic.packetblocks.block.PacketBlock
-
Retrieves the metadata value associated with the given key.
- getMetadata(String, Object) - Method in class net.bitbylogic.packetblocks.block.PacketBlockPlayerData
-
Retrieves the metadata associated with the given key.
- getMetadata(Player, String) - Method in class net.bitbylogic.packetblocks.block.PacketBlock
-
Retrieves the metadata associated with a specific player and a given key.
- getMetadataAs(String, Class<T>) - Method in class net.bitbylogic.packetblocks.block.PacketBlock
-
Retrieves metadata associated with the specified key and casts it to the desired type.
- getMetadataAs(String, Class<T>) - Method in class net.bitbylogic.packetblocks.block.PacketBlockPlayerData
-
Retrieves the metadata associated with the given key and casts it to the specified type.
- getMetadataAs(Player, String, Object) - Method in class net.bitbylogic.packetblocks.block.PacketBlock
-
Retrieves metadata associated with a given key for a specified player.
- getViewer(Player) - Method in class net.bitbylogic.packetblocks.block.PacketBlock
-
Retrieves the
PacketBlockPlayerData
associated with the given player if they are a viewer of this Packet Block.
H
- hasMetadata(String) - Method in class net.bitbylogic.packetblocks.block.PacketBlock
-
Checks if the metadata contains the specified key.
- hasMetadata(String) - Method in class net.bitbylogic.packetblocks.block.PacketBlockPlayerData
-
Checks if a metadata entry with the specified key exists.
- hasMetadata(Player, String) - Method in class net.bitbylogic.packetblocks.block.PacketBlock
-
Checks if the specified player has metadata associated with the given key within this Packet Block.
I
- init(PacketBlocks) - Static method in class net.bitbylogic.packetblocks.util.BoundingBoxes
- isCancelled() - Method in class net.bitbylogic.packetblocks.event.PacketBlockBreakEvent
- isCancelled() - Method in class net.bitbylogic.packetblocks.event.PacketBlockStartBreakEvent
- isViewer(Player) - Method in class net.bitbylogic.packetblocks.block.PacketBlock
-
Checks whether the specified player is a viewer of this Packet Block.
N
- net.bitbylogic.packetblocks - package net.bitbylogic.packetblocks
- net.bitbylogic.packetblocks.adapter - package net.bitbylogic.packetblocks.adapter
- net.bitbylogic.packetblocks.block - package net.bitbylogic.packetblocks.block
- net.bitbylogic.packetblocks.event - package net.bitbylogic.packetblocks.event
- net.bitbylogic.packetblocks.listener - package net.bitbylogic.packetblocks.listener
- net.bitbylogic.packetblocks.task - package net.bitbylogic.packetblocks.task
- net.bitbylogic.packetblocks.util - package net.bitbylogic.packetblocks.util
O
- onBlockBreak(BlockBreakEvent) - Method in class net.bitbylogic.packetblocks.listener.PacketBlockListener
- onDisable() - Method in class net.bitbylogic.packetblocks.PacketBlocks
- onEnable() - Method in class net.bitbylogic.packetblocks.PacketBlocks
- onJoin(PlayerJoinEvent) - Method in class net.bitbylogic.packetblocks.listener.PacketBlockListener
- onLoad() - Method in class net.bitbylogic.packetblocks.PacketBlocks
- onPacketReceive(PacketReceiveEvent) - Method in class net.bitbylogic.packetblocks.adapter.BlockBreakAdapter
- onPacketReceive(PacketReceiveEvent) - Method in class net.bitbylogic.packetblocks.adapter.BlockPlaceAdapter
- onPacketSend(PacketSendEvent) - Method in class net.bitbylogic.packetblocks.adapter.BlockUpdateAdapter
- onPacketSend(PacketSendEvent) - Method in class net.bitbylogic.packetblocks.adapter.ChunkLoadAdapter
- onQuit(PlayerQuitEvent) - Method in class net.bitbylogic.packetblocks.listener.PacketBlockListener
P
- PacketBlock - Class in net.bitbylogic.packetblocks.block
- PacketBlock(Location, BlockData) - Constructor for class net.bitbylogic.packetblocks.block.PacketBlock
-
Constructs a new PacketBlock instance associated with a specific location and block data.
- PacketBlockAnimationTask - Class in net.bitbylogic.packetblocks.task
- PacketBlockAnimationTask() - Constructor for class net.bitbylogic.packetblocks.task.PacketBlockAnimationTask
- PacketBlockBreakEvent - Class in net.bitbylogic.packetblocks.event
-
Called when a
PacketBlock
is broken by a player. - PacketBlockBreakEvent(Player, PacketBlock, Location, ItemStack) - Constructor for class net.bitbylogic.packetblocks.event.PacketBlockBreakEvent
- PacketBlockListener - Class in net.bitbylogic.packetblocks.listener
- PacketBlockListener() - Constructor for class net.bitbylogic.packetblocks.listener.PacketBlockListener
- PacketBlockManager - Class in net.bitbylogic.packetblocks.block
- PacketBlockManager() - Constructor for class net.bitbylogic.packetblocks.block.PacketBlockManager
- PacketBlockPlayerData - Class in net.bitbylogic.packetblocks.block
- PacketBlockPlayerData() - Constructor for class net.bitbylogic.packetblocks.block.PacketBlockPlayerData
- PacketBlocks - Class in net.bitbylogic.packetblocks
- PacketBlocks() - Constructor for class net.bitbylogic.packetblocks.PacketBlocks
- PacketBlockStartBreakEvent - Class in net.bitbylogic.packetblocks.event
-
Called when a player starts breaking a
PacketBlock
. - PacketBlockStartBreakEvent(Player, PacketBlock, Location) - Constructor for class net.bitbylogic.packetblocks.event.PacketBlockStartBreakEvent
- PacketBlockUtil - Class in net.bitbylogic.packetblocks.util
- PacketBlockUtil() - Constructor for class net.bitbylogic.packetblocks.util.PacketBlockUtil
R
- rayTrace(Player, double) - Static method in class net.bitbylogic.packetblocks.util.PacketBlockUtil
-
Performs a ray trace from the player's eye location along their current direction up to the specified range.
- removeBlock(PacketBlock) - Method in class net.bitbylogic.packetblocks.block.PacketBlockManager
-
Removes the specified
PacketBlock
from the blockLocations map and updates its visual state for all associated viewers. - removeEntry(Player) - Method in class net.bitbylogic.packetblocks.task.PacketBlockAnimationTask
- removeIf(Predicate<PacketBlock>) - Method in class net.bitbylogic.packetblocks.block.PacketBlockManager
-
Removes
PacketBlock
instances from the managed collection if they satisfy a specified condition. - removeMetadata(String) - Method in class net.bitbylogic.packetblocks.block.PacketBlock
-
Removes the metadata associated with the specified key.
- removeMetadata(String) - Method in class net.bitbylogic.packetblocks.block.PacketBlockPlayerData
-
Removes metadata associated with the specified key from the metadata map.
- removeMetadata(Player, String) - Method in class net.bitbylogic.packetblocks.block.PacketBlock
-
Removes the metadata associated with a specific key for the given player, if the player is a viewer of this PacketBlock.
- removeViewer(Player) - Method in class net.bitbylogic.packetblocks.block.PacketBlock
-
Removes the specified player from the list of viewers if they are present.
- run() - Method in class net.bitbylogic.packetblocks.task.PacketBlockAnimationTask
S
- sendUpdate(Player) - Method in class net.bitbylogic.packetblocks.block.PacketBlock
-
Sends a block update to the specified player at the current location.
- sendUpdates() - Method in class net.bitbylogic.packetblocks.block.PacketBlock
-
Sends block updates to all the viewers currently tracking the block at the specified location.
- setBlockData(Player, BlockData) - Method in class net.bitbylogic.packetblocks.block.PacketBlock
-
Sets the block data for a specific player.
- setBlockDataAndUpdate(Player, BlockData) - Method in class net.bitbylogic.packetblocks.block.PacketBlock
-
Sets the block data for the specified player and sends an update.
- setBlockDataForAll(BlockData) - Method in class net.bitbylogic.packetblocks.block.PacketBlock
-
Sets the block data for all viewers and updates them accordingly.
- setBlockDataSupplier(Player, BlockData) - Method in class net.bitbylogic.packetblocks.block.PacketBlock
-
Sets the BlockData supplier for a specific player, allowing for dynamic control over block data.
- setBlockDataSupplierForAll(BlockData) - Method in class net.bitbylogic.packetblocks.block.PacketBlock
-
Sets the block data supplier for all viewers and updates the block data for each viewer based on the provided BlockData.
- setCancelled(boolean) - Method in class net.bitbylogic.packetblocks.event.PacketBlockBreakEvent
- setCancelled(boolean) - Method in class net.bitbylogic.packetblocks.event.PacketBlockStartBreakEvent
- simulateBreak(Player) - Method in class net.bitbylogic.packetblocks.block.PacketBlock
-
Simulates the breaking action for the specified player.
- simulateBreak(Player, ItemStack) - Method in class net.bitbylogic.packetblocks.block.PacketBlock
-
Simulates the block-breaking process, triggering a custom event and handling item drops based on the event state.
U
- updateBlocks(Player) - Method in class net.bitbylogic.packetblocks.block.PacketBlockManager
-
Updates all visually modified blocks for the specified player in their visible region.
- updateBlocksWithMeta(Player, String) - Method in class net.bitbylogic.packetblocks.block.PacketBlockManager
-
Updates the visual state of blocks for a specific player, optionally filtering by metadata.
All Classes and Interfaces|All Packages