@Test public void isSign() { assertTrue(MaterialUtils.isSign(Material.ACACIA_SIGN)); assertTrue(MaterialUtils.isSign(Material.ACACIA_WALL_SIGN)); assertFalse(MaterialUtils.isSign(Material.DIRT)); }
public static boolean isSign(Material material) { return material.data.equals(Sign.class) || material.data.equals(WallSign.class); }
MaterialUtils { public static boolean isSign(Material material) { return material.data.equals(Sign.class) || material.data.equals(WallSign.class); } }
MaterialUtils { public static boolean isSign(Material material) { return material.data.equals(Sign.class) || material.data.equals(WallSign.class); } private  MaterialUtils(); }
MaterialUtils { public static boolean isSign(Material material) { return material.data.equals(Sign.class) || material.data.equals(WallSign.class); } 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 isSign(Material material) { return material.data.equals(Sign.class) || material.data.equals(WallSign.class); } 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; }