Skip to content

Commit bdac3ee

Browse files
committed
Update README.md
1 parent 45ce7b2 commit bdac3ee

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ packetBlock.addViewCondition(player -> player.hasPermission("packetblocks.view")
7777
packetBlock.addAndUpdateViewer(player);
7878

7979
// Update for all viewers
80-
packetBlock.setBlockDataForAll(Material.GOLD_BLOCK.createBlockData());
80+
packetBlock.setDataForAll(Material.GOLD_BLOCK.createBlockData());
8181

8282
// Simulate break (fires PacketBlockBreakEvent and drops items by default)
8383
packetBlock.simulateBreak(player);
@@ -113,13 +113,13 @@ PacketBlockManager blockManager = PacketBlocks.getInstance().getBlockManager();
113113
Some important methods:
114114

115115
- `createBlock(Location location, BlockData blockData)` – Creates a new PacketBlock at the specified location
116-
- `removeBlock(PacketBlock packetBlock)` – Removes a block and resets the world block for all viewers
116+
- `removeBlock(PacketBlockHolder<?, ?> packetBlock)` – Removes a block and resets the world block for all viewers
117117
- `removeIf(Predicate<PacketBlock> removePredicate)` – Removes blocks that match a given condition
118-
- `getBlock(Location location)` – Gets the PacketBlock at a specific location, if it exists
119-
- `getBlocks(World world)` – Gets all PacketBlocks in a world
120-
- `getBlocks(World world, int chunkX, int chunkZ)` – Gets all PacketBlocks in a specific chunk
121-
- `getBlocksByViewer(Player player)` – Gets all PacketBlocks currently visible to a player
122-
- `getBlocksByViewerWithMeta(Player player, String metaKey)` – Gets all PacketBlocks visible to a player that contain a specific metadata key
118+
- `getBlock(Location location)` – Gets the PacketBlockHolder at a specific location, if it exists
119+
- `getBlocks(World world)` – Gets all PacketBlockHolders in a world
120+
- `getBlocks(World world, int chunkX, int chunkZ)` – Gets all PacketBlockHolders in a specific chunk
121+
- `getBlocksByViewer(Player player)` – Gets all PacketBlockHolders currently visible to a player
122+
- `getBlocksByViewerWithMeta(Player player, String metaKey)` – Gets all PacketBlockHolders visible to a player that contain a specific metadata key
123123

124124
---
125125

0 commit comments

Comments
 (0)