@Test public void isContainer() { assertTrue(MaterialUtils.isContainer(Material.CHEST)); assertTrue(MaterialUtils.isContainer(Material.DISPENSER)); assertTrue(MaterialUtils.isContainer(Material.CHEST_MINECART)); }
public static boolean isContainer(Material material) { switch (material) { case BEACON: case BREWING_STAND: case CHEST: case DISPENSER: case REPEATER: case DRAGON_EGG: case DROPPER: case ENCHANTING_TABLE: case ENDER_CHEST: case FURNACE: case HOPPER: case JUKEBOX: case COMPARATOR: case TRAPPED_CHEST: case CRAFTING_TABLE: case CHEST_MINECART: case FURNACE_MINECART: case HOPPER_MINECART: return true; default: return false; } }
MaterialUtils { public static boolean isContainer(Material material) { switch (material) { case BEACON: case BREWING_STAND: case CHEST: case DISPENSER: case REPEATER: case DRAGON_EGG: case DROPPER: case ENCHANTING_TABLE: case ENDER_CHEST: case FURNACE: case HOPPER: case JUKEBOX: case COMPARATOR: case TRAPPED_CHEST: case CRAFTING_TABLE: case CHEST_MINECART: case FURNACE_MINECART: case HOPPER_MINECART: return true; default: return false; } } }
MaterialUtils { public static boolean isContainer(Material material) { switch (material) { case BEACON: case BREWING_STAND: case CHEST: case DISPENSER: case REPEATER: case DRAGON_EGG: case DROPPER: case ENCHANTING_TABLE: case ENDER_CHEST: case FURNACE: case HOPPER: case JUKEBOX: case COMPARATOR: case TRAPPED_CHEST: case CRAFTING_TABLE: case CHEST_MINECART: case FURNACE_MINECART: case HOPPER_MINECART: return true; default: return false; } } private  MaterialUtils(); }
MaterialUtils { public static boolean isContainer(Material material) { switch (material) { case BEACON: case BREWING_STAND: case CHEST: case DISPENSER: case REPEATER: case DRAGON_EGG: case DROPPER: case ENCHANTING_TABLE: case ENDER_CHEST: case FURNACE: case HOPPER: case JUKEBOX: case COMPARATOR: case TRAPPED_CHEST: case CRAFTING_TABLE: case CHEST_MINECART: case FURNACE_MINECART: case HOPPER_MINECART: return true; default: return false; } } private  MaterialUtils(); static boolean isInteractableBlock(Material material); static boolean isInteractableBlockClass(Block block); static boolean isContainer(Material material); static boolean isSign(Material material); static boolean isGoldTool(@Nonnull Material material); static boolean isLeaves(@Nullable Material material); static boolean equals(@Nullable Material material, @Nonnull Material... any); }
MaterialUtils { public static boolean isContainer(Material material) { switch (material) { case BEACON: case BREWING_STAND: case CHEST: case DISPENSER: case REPEATER: case DRAGON_EGG: case DROPPER: case ENCHANTING_TABLE: case ENDER_CHEST: case FURNACE: case HOPPER: case JUKEBOX: case COMPARATOR: case TRAPPED_CHEST: case CRAFTING_TABLE: case CHEST_MINECART: case FURNACE_MINECART: case HOPPER_MINECART: return true; default: return false; } } private  MaterialUtils(); static boolean isInteractableBlock(Material material); static boolean isInteractableBlockClass(Block block); static boolean isContainer(Material material); static boolean isSign(Material material); static boolean isGoldTool(@Nonnull Material material); static boolean isLeaves(@Nullable Material material); static boolean equals(@Nullable Material material, @Nonnull Material... any); static final Map<DyeColor, Material> dyeToWool; static final Map<DyeColor, Material> dyeToBanner; static final Map<DyeColor, Material> dyeToItem; static final Map<Material, Material> itemWallableMapping; }