@@ -70,11 +70,20 @@ private void setFlags() {
7070 when (Tag .ANVIL .isTagged (Material .DAMAGED_ANVIL )).thenReturn (true );
7171 clickedBlocks .put (Material .BEACON , Flags .BEACON );
7272 clickedBlocks .put (Material .WHITE_BED , Flags .BED );
73+ clickedBlocks .put (Material .COPPER_GOLEM_STATUE , Flags .BREAK_BLOCKS );
74+ clickedBlocks .put (Material .WAXED_COPPER_GOLEM_STATUE , Flags .BREAK_BLOCKS );
75+ clickedBlocks .put (Material .EXPOSED_COPPER_GOLEM_STATUE , Flags .BREAK_BLOCKS );
76+ clickedBlocks .put (Material .WAXED_EXPOSED_COPPER_GOLEM_STATUE , Flags .BREAK_BLOCKS );
77+ clickedBlocks .put (Material .WAXED_WEATHERED_COPPER_GOLEM_STATUE , Flags .BREAK_BLOCKS );
78+ clickedBlocks .put (Material .WEATHERED_COPPER_GOLEM_STATUE , Flags .BREAK_BLOCKS );
79+ clickedBlocks .put (Material .OXIDIZED_COPPER_GOLEM_STATUE , Flags .BREAK_BLOCKS );
80+ clickedBlocks .put (Material .WAXED_OXIDIZED_COPPER_GOLEM_STATUE , Flags .BREAK_BLOCKS );
7381 when (Tag .BEDS .isTagged (Material .WHITE_BED )).thenReturn (true );
7482 clickedBlocks .put (Material .BREWING_STAND , Flags .BREWING );
7583 clickedBlocks .put (Material .WATER_CAULDRON , Flags .COLLECT_WATER );
7684 clickedBlocks .put (Material .BARREL , Flags .BARREL );
7785 clickedBlocks .put (Material .CHEST , Flags .CHEST );
86+ clickedBlocks .put (Material .COPPER_CHEST , Flags .CHEST );
7887 clickedBlocks .put (Material .CHEST_MINECART , Flags .CHEST );
7988 clickedBlocks .put (Material .TRAPPED_CHEST , Flags .TRAPPED_CHEST );
8089 clickedBlocks .put (Material .SHULKER_BOX , Flags .SHULKER_BOX );
@@ -186,6 +195,43 @@ public void testOnPlayerInteractItemFrameNotAllowedOtherFlagsOkay() {
186195 */
187196 @ Test
188197 public void testOnPlayerInteractNothingInHandPotsNotAllowed () {
198+ when (Tag .FLOWER_POTS .isTagged (Material .POTTED_ACACIA_SAPLING )).thenReturn (true );
199+ when (Tag .FLOWER_POTS .isTagged (Material .POTTED_ALLIUM )).thenReturn (true );
200+ when (Tag .FLOWER_POTS .isTagged (Material .POTTED_AZALEA_BUSH )).thenReturn (true );
201+ when (Tag .FLOWER_POTS .isTagged (Material .POTTED_AZURE_BLUET )).thenReturn (true );
202+ when (Tag .FLOWER_POTS .isTagged (Material .POTTED_BAMBOO )).thenReturn (true );
203+ when (Tag .FLOWER_POTS .isTagged (Material .POTTED_BIRCH_SAPLING )).thenReturn (true );
204+ when (Tag .FLOWER_POTS .isTagged (Material .POTTED_BLUE_ORCHID )).thenReturn (true );
205+ when (Tag .FLOWER_POTS .isTagged (Material .POTTED_BROWN_MUSHROOM )).thenReturn (true );
206+ when (Tag .FLOWER_POTS .isTagged (Material .POTTED_CACTUS )).thenReturn (true );
207+ when (Tag .FLOWER_POTS .isTagged (Material .POTTED_CHERRY_SAPLING )).thenReturn (true );
208+ when (Tag .FLOWER_POTS .isTagged (Material .POTTED_CLOSED_EYEBLOSSOM )).thenReturn (true );
209+ when (Tag .FLOWER_POTS .isTagged (Material .POTTED_CORNFLOWER )).thenReturn (true );
210+ when (Tag .FLOWER_POTS .isTagged (Material .POTTED_CRIMSON_FUNGUS )).thenReturn (true );
211+ when (Tag .FLOWER_POTS .isTagged (Material .POTTED_CRIMSON_ROOTS )).thenReturn (true );
212+ when (Tag .FLOWER_POTS .isTagged (Material .POTTED_DANDELION )).thenReturn (true );
213+ when (Tag .FLOWER_POTS .isTagged (Material .POTTED_DARK_OAK_SAPLING )).thenReturn (true );
214+ when (Tag .FLOWER_POTS .isTagged (Material .POTTED_DEAD_BUSH )).thenReturn (true );
215+ when (Tag .FLOWER_POTS .isTagged (Material .POTTED_FERN )).thenReturn (true );
216+ when (Tag .FLOWER_POTS .isTagged (Material .POTTED_FLOWERING_AZALEA_BUSH )).thenReturn (true );
217+ when (Tag .FLOWER_POTS .isTagged (Material .POTTED_JUNGLE_SAPLING )).thenReturn (true );
218+ when (Tag .FLOWER_POTS .isTagged (Material .POTTED_LILY_OF_THE_VALLEY )).thenReturn (true );
219+ when (Tag .FLOWER_POTS .isTagged (Material .POTTED_MANGROVE_PROPAGULE )).thenReturn (true );
220+ when (Tag .FLOWER_POTS .isTagged (Material .POTTED_OAK_SAPLING )).thenReturn (true );
221+ when (Tag .FLOWER_POTS .isTagged (Material .POTTED_OPEN_EYEBLOSSOM )).thenReturn (true );
222+ when (Tag .FLOWER_POTS .isTagged (Material .POTTED_ORANGE_TULIP )).thenReturn (true );
223+ when (Tag .FLOWER_POTS .isTagged (Material .POTTED_OXEYE_DAISY )).thenReturn (true );
224+ when (Tag .FLOWER_POTS .isTagged (Material .POTTED_PALE_OAK_SAPLING )).thenReturn (true );
225+ when (Tag .FLOWER_POTS .isTagged (Material .POTTED_PINK_TULIP )).thenReturn (true );
226+ when (Tag .FLOWER_POTS .isTagged (Material .POTTED_POPPY )).thenReturn (true );
227+ when (Tag .FLOWER_POTS .isTagged (Material .POTTED_RED_MUSHROOM )).thenReturn (true );
228+ when (Tag .FLOWER_POTS .isTagged (Material .POTTED_RED_TULIP )).thenReturn (true );
229+ when (Tag .FLOWER_POTS .isTagged (Material .POTTED_SPRUCE_SAPLING )).thenReturn (true );
230+ when (Tag .FLOWER_POTS .isTagged (Material .POTTED_TORCHFLOWER )).thenReturn (true );
231+ when (Tag .FLOWER_POTS .isTagged (Material .POTTED_WARPED_FUNGUS )).thenReturn (true );
232+ when (Tag .FLOWER_POTS .isTagged (Material .POTTED_WARPED_ROOTS )).thenReturn (true );
233+ when (Tag .FLOWER_POTS .isTagged (Material .POTTED_WHITE_TULIP )).thenReturn (true );
234+ when (Tag .FLOWER_POTS .isTagged (Material .POTTED_WITHER_ROSE )).thenReturn (true );
189235 Arrays .stream (Material .values ()).filter (m -> m .name ().startsWith ("POTTED" )).forEach (bm -> {
190236 when (clickedBlock .getType ()).thenReturn (bm );
191237 PlayerInteractEvent e = new PlayerInteractEvent (mockPlayer , Action .RIGHT_CLICK_BLOCK , item , clickedBlock , BlockFace .EAST , hand );
@@ -200,6 +246,16 @@ public void testOnPlayerInteractNothingInHandPotsNotAllowed() {
200246 */
201247 @ Test
202248 public void testOnPlayerInteractNothingInHandNotAllowed () {
249+ when (Tag .COPPER_CHESTS .isTagged (Material .COPPER_CHEST )).thenReturn (true );
250+ when (Tag .COPPER_GOLEM_STATUES .isTagged (Material .COPPER_GOLEM_STATUE )).thenReturn (true );
251+ when (Tag .COPPER_GOLEM_STATUES .isTagged (Material .EXPOSED_COPPER_GOLEM_STATUE )).thenReturn (true );
252+ when (Tag .COPPER_GOLEM_STATUES .isTagged (Material .OXIDIZED_COPPER_GOLEM_STATUE )).thenReturn (true );
253+ when (Tag .COPPER_GOLEM_STATUES .isTagged (Material .WAXED_COPPER_GOLEM_STATUE )).thenReturn (true );
254+ when (Tag .COPPER_GOLEM_STATUES .isTagged (Material .WAXED_EXPOSED_COPPER_GOLEM_STATUE )).thenReturn (true );
255+ when (Tag .COPPER_GOLEM_STATUES .isTagged (Material .WAXED_OXIDIZED_COPPER_GOLEM_STATUE )).thenReturn (true );
256+ when (Tag .COPPER_GOLEM_STATUES .isTagged (Material .WAXED_WEATHERED_COPPER_GOLEM_STATUE )).thenReturn (true );
257+ when (Tag .COPPER_GOLEM_STATUES .isTagged (Material .WEATHERED_COPPER_GOLEM_STATUE )).thenReturn (true );
258+
203259 int count = 0 ;
204260 int worldSettingCount = 0 ;
205261 // Make all block states a sign. Right now, only the sign check cares, so fix in the future if required
0 commit comments