summaryrefslogtreecommitdiffstats
path: root/src/main/java/org
diff options
context:
space:
mode:
authorChristos Miniotis <chrismin1302@gmail.com>2018-08-08 04:07:31 +0300
committermd_5 <git@md-5.net>2018-08-08 18:03:46 +1000
commit497877c30c12d5f06e5b676e8b45f33776ab0c7c (patch)
treebf1dc7aa98e5c5088500e3293bf716ed5a2a280d /src/main/java/org
parent935f75dea0c1f4721dd7666295f5036ed1ddbca2 (diff)
downloadbukkit-497877c30c12d5f06e5b676e8b45f33776ab0c7c.tar
bukkit-497877c30c12d5f06e5b676e8b45f33776ab0c7c.tar.gz
bukkit-497877c30c12d5f06e5b676e8b45f33776ab0c7c.tar.lz
bukkit-497877c30c12d5f06e5b676e8b45f33776ab0c7c.tar.xz
bukkit-497877c30c12d5f06e5b676e8b45f33776ab0c7c.zip
Add getHardness and getBlastResistance to Material
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/bukkit/Material.java1056
1 files changed, 1056 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/Material.java b/src/main/java/org/bukkit/Material.java
index ddfd8159..dc97991f 100644
--- a/src/main/java/org/bukkit/Material.java
+++ b/src/main/java/org/bukkit/Material.java
@@ -5055,4 +5055,1060 @@ public enum Material implements Keyed {
return false;
}
}
+
+ /**
+ * Obtains the block's hardness level (also known as "strength").
+ * <br>
+ * This number is used to calculate the time required to break each block.
+ * <br>
+ * Only available when {@link #isBlock()} is true.
+ *
+ * @return the hardness of that material.
+ */
+ public float getHardness() {
+ Validate.isTrue(isBlock(), "The Material is not a block!");
+ switch (this) {
+ // <editor-fold defaultstate="collapsed" desc="getBlockHardness">
+ case BARRIER:
+ case BEDROCK:
+ case CHAIN_COMMAND_BLOCK:
+ case COMMAND_BLOCK:
+ case END_GATEWAY:
+ case END_PORTAL:
+ case END_PORTAL_FRAME:
+ case MOVING_PISTON:
+ case NETHER_PORTAL:
+ case REPEATING_COMMAND_BLOCK:
+ case STRUCTURE_BLOCK:
+ return -1.0F;
+ case BLACK_CARPET:
+ case BLUE_CARPET:
+ case BROWN_CARPET:
+ case CYAN_CARPET:
+ case GRAY_CARPET:
+ case GREEN_CARPET:
+ case LIGHT_BLUE_CARPET:
+ case LIGHT_GRAY_CARPET:
+ case LIME_CARPET:
+ case MAGENTA_CARPET:
+ case ORANGE_CARPET:
+ case PINK_CARPET:
+ case PURPLE_CARPET:
+ case RED_CARPET:
+ case SNOW:
+ case WHITE_CARPET:
+ case YELLOW_CARPET:
+ return 0.1F;
+ case ACACIA_LEAVES:
+ case BIRCH_LEAVES:
+ case BLACK_BED:
+ case BLUE_BED:
+ case BROWN_BED:
+ case BROWN_MUSHROOM_BLOCK:
+ case COCOA:
+ case CYAN_BED:
+ case DARK_OAK_LEAVES:
+ case DAYLIGHT_DETECTOR:
+ case GRAY_BED:
+ case GREEN_BED:
+ case JUNGLE_LEAVES:
+ case LIGHT_BLUE_BED:
+ case LIGHT_GRAY_BED:
+ case LIME_BED:
+ case MAGENTA_BED:
+ case MUSHROOM_STEM:
+ case OAK_LEAVES:
+ case ORANGE_BED:
+ case PINK_BED:
+ case PURPLE_BED:
+ case RED_BED:
+ case RED_MUSHROOM_BLOCK:
+ case SNOW_BLOCK:
+ case SPRUCE_LEAVES:
+ case VINE:
+ case WHITE_BED:
+ case YELLOW_BED:
+ return 0.2F;
+ case BLACK_STAINED_GLASS:
+ case BLACK_STAINED_GLASS_PANE:
+ case BLUE_STAINED_GLASS:
+ case BLUE_STAINED_GLASS_PANE:
+ case BROWN_STAINED_GLASS:
+ case BROWN_STAINED_GLASS_PANE:
+ case CYAN_STAINED_GLASS:
+ case CYAN_STAINED_GLASS_PANE:
+ case GLASS:
+ case GLASS_PANE:
+ case GLOWSTONE:
+ case GRAY_STAINED_GLASS:
+ case GRAY_STAINED_GLASS_PANE:
+ case GREEN_STAINED_GLASS:
+ case GREEN_STAINED_GLASS_PANE:
+ case LIGHT_BLUE_STAINED_GLASS:
+ case LIGHT_BLUE_STAINED_GLASS_PANE:
+ case LIGHT_GRAY_STAINED_GLASS:
+ case LIGHT_GRAY_STAINED_GLASS_PANE:
+ case LIME_STAINED_GLASS:
+ case LIME_STAINED_GLASS_PANE:
+ case MAGENTA_STAINED_GLASS:
+ case MAGENTA_STAINED_GLASS_PANE:
+ case ORANGE_STAINED_GLASS:
+ case ORANGE_STAINED_GLASS_PANE:
+ case PINK_STAINED_GLASS:
+ case PINK_STAINED_GLASS_PANE:
+ case PURPLE_STAINED_GLASS:
+ case PURPLE_STAINED_GLASS_PANE:
+ case REDSTONE_LAMP:
+ case RED_STAINED_GLASS:
+ case RED_STAINED_GLASS_PANE:
+ case SEA_LANTERN:
+ case WHITE_STAINED_GLASS:
+ case WHITE_STAINED_GLASS_PANE:
+ case YELLOW_STAINED_GLASS:
+ case YELLOW_STAINED_GLASS_PANE:
+ return 0.3F;
+ case CACTUS:
+ case CHORUS_FLOWER:
+ case CHORUS_PLANT:
+ case LADDER:
+ case NETHERRACK:
+ return 0.4F;
+ case ACACIA_BUTTON:
+ case ACACIA_PRESSURE_PLATE:
+ case BIRCH_BUTTON:
+ case BIRCH_PRESSURE_PLATE:
+ case BLACK_CONCRETE_POWDER:
+ case BLUE_CONCRETE_POWDER:
+ case BREWING_STAND:
+ case BROWN_CONCRETE_POWDER:
+ case CAKE:
+ case COARSE_DIRT:
+ case CYAN_CONCRETE_POWDER:
+ case DARK_OAK_BUTTON:
+ case DARK_OAK_PRESSURE_PLATE:
+ case DIRT:
+ case DRIED_KELP_BLOCK:
+ case FROSTED_ICE:
+ case GRAY_CONCRETE_POWDER:
+ case GREEN_CONCRETE_POWDER:
+ case HAY_BLOCK:
+ case HEAVY_WEIGHTED_PRESSURE_PLATE:
+ case ICE:
+ case JUNGLE_BUTTON:
+ case JUNGLE_PRESSURE_PLATE:
+ case LEVER:
+ case LIGHT_BLUE_CONCRETE_POWDER:
+ case LIGHT_GRAY_CONCRETE_POWDER:
+ case LIGHT_WEIGHTED_PRESSURE_PLATE:
+ case LIME_CONCRETE_POWDER:
+ case MAGENTA_CONCRETE_POWDER:
+ case MAGMA_BLOCK:
+ case OAK_BUTTON:
+ case OAK_PRESSURE_PLATE:
+ case ORANGE_CONCRETE_POWDER:
+ case PACKED_ICE:
+ case PINK_CONCRETE_POWDER:
+ case PISTON:
+ case PISTON_HEAD:
+ case PODZOL:
+ case PURPLE_CONCRETE_POWDER:
+ case RED_CONCRETE_POWDER:
+ case RED_SAND:
+ case SAND:
+ case SOUL_SAND:
+ case SPRUCE_BUTTON:
+ case SPRUCE_PRESSURE_PLATE:
+ case STICKY_PISTON:
+ case STONE_BUTTON:
+ case STONE_PRESSURE_PLATE:
+ case TURTLE_EGG:
+ case WHITE_CONCRETE_POWDER:
+ case YELLOW_CONCRETE_POWDER:
+ return 0.5F;
+ case CLAY:
+ case FARMLAND:
+ case GRASS_BLOCK:
+ case GRAVEL:
+ case MYCELIUM:
+ case SPONGE:
+ case WET_SPONGE:
+ return 0.6F;
+ case GRASS_PATH:
+ return 0.65F;
+ case ACTIVATOR_RAIL:
+ case DETECTOR_RAIL:
+ case POWERED_RAIL:
+ case RAIL:
+ return 0.7F;
+ case BLACK_WOOL:
+ case BLUE_WOOL:
+ case BROWN_WOOL:
+ case CHISELED_QUARTZ_BLOCK:
+ case CHISELED_RED_SANDSTONE:
+ case CHISELED_SANDSTONE:
+ case CUT_RED_SANDSTONE:
+ case CUT_SANDSTONE:
+ case CYAN_WOOL:
+ case END_STONE_BRICKS:
+ case GRAY_WOOL:
+ case GREEN_WOOL:
+ case LIGHT_BLUE_WOOL:
+ case LIGHT_GRAY_WOOL:
+ case LIME_WOOL:
+ case MAGENTA_WOOL:
+ case NOTE_BLOCK:
+ case ORANGE_WOOL:
+ case PINK_WOOL:
+ case PURPLE_WOOL:
+ case QUARTZ_BLOCK:
+ case QUARTZ_PILLAR:
+ case QUARTZ_STAIRS:
+ case RED_SANDSTONE:
+ case RED_SANDSTONE_STAIRS:
+ case RED_WOOL:
+ case SANDSTONE:
+ case SANDSTONE_STAIRS:
+ case WHITE_WOOL:
+ case YELLOW_WOOL:
+ return 0.8F;
+ case BLACK_BANNER:
+ case BLACK_WALL_BANNER:
+ case BLUE_BANNER:
+ case BLUE_WALL_BANNER:
+ case BROWN_BANNER:
+ case BROWN_WALL_BANNER:
+ case CARVED_PUMPKIN:
+ case CREEPER_HEAD:
+ case CREEPER_WALL_HEAD:
+ case CYAN_BANNER:
+ case CYAN_WALL_BANNER:
+ case DRAGON_HEAD:
+ case DRAGON_WALL_HEAD:
+ case GRAY_BANNER:
+ case GRAY_WALL_BANNER:
+ case GREEN_BANNER:
+ case GREEN_WALL_BANNER:
+ case JACK_O_LANTERN:
+ case LIGHT_BLUE_BANNER:
+ case LIGHT_BLUE_WALL_BANNER:
+ case LIGHT_GRAY_BANNER:
+ case LIGHT_GRAY_WALL_BANNER:
+ case LIME_BANNER:
+ case LIME_WALL_BANNER:
+ case MAGENTA_BANNER:
+ case MAGENTA_WALL_BANNER:
+ case MELON:
+ case NETHER_WART_BLOCK:
+ case ORANGE_BANNER:
+ case ORANGE_WALL_BANNER:
+ case PINK_BANNER:
+ case PINK_WALL_BANNER:
+ case PLAYER_HEAD:
+ case PLAYER_WALL_HEAD:
+ case PUMPKIN:
+ case PURPLE_BANNER:
+ case PURPLE_WALL_BANNER:
+ case RED_BANNER:
+ case RED_WALL_BANNER:
+ case SIGN:
+ case SKELETON_SKULL:
+ case SKELETON_WALL_SKULL:
+ case WALL_SIGN:
+ case WHITE_BANNER:
+ case WHITE_WALL_BANNER:
+ case WITHER_SKELETON_SKULL:
+ case WITHER_SKELETON_WALL_SKULL:
+ case YELLOW_BANNER:
+ case YELLOW_WALL_BANNER:
+ case ZOMBIE_HEAD:
+ case ZOMBIE_WALL_HEAD:
+ return 1.0F;
+ case BLACK_TERRACOTTA:
+ case BLUE_TERRACOTTA:
+ case BROWN_TERRACOTTA:
+ case CYAN_TERRACOTTA:
+ case GRAY_TERRACOTTA:
+ case GREEN_TERRACOTTA:
+ case LIGHT_BLUE_TERRACOTTA:
+ case LIGHT_GRAY_TERRACOTTA:
+ case LIME_TERRACOTTA:
+ case MAGENTA_TERRACOTTA:
+ case ORANGE_TERRACOTTA:
+ case PINK_TERRACOTTA:
+ case PURPLE_TERRACOTTA:
+ case RED_TERRACOTTA:
+ case TERRACOTTA:
+ case WHITE_TERRACOTTA:
+ case YELLOW_TERRACOTTA:
+ return 1.25F;
+ case BLACK_GLAZED_TERRACOTTA:
+ case BLUE_GLAZED_TERRACOTTA:
+ case BROWN_GLAZED_TERRACOTTA:
+ case CYAN_GLAZED_TERRACOTTA:
+ case GRAY_GLAZED_TERRACOTTA:
+ case GREEN_GLAZED_TERRACOTTA:
+ case LIGHT_BLUE_GLAZED_TERRACOTTA:
+ case LIGHT_GRAY_GLAZED_TERRACOTTA:
+ case LIME_GLAZED_TERRACOTTA:
+ case MAGENTA_GLAZED_TERRACOTTA:
+ case ORANGE_GLAZED_TERRACOTTA:
+ case PINK_GLAZED_TERRACOTTA:
+ case PURPLE_GLAZED_TERRACOTTA:
+ case RED_GLAZED_TERRACOTTA:
+ case WHITE_GLAZED_TERRACOTTA:
+ case YELLOW_GLAZED_TERRACOTTA:
+ return 1.4F;
+ case ANDESITE:
+ case BOOKSHELF:
+ case BRAIN_CORAL_BLOCK:
+ case BUBBLE_CORAL_BLOCK:
+ case CHISELED_STONE_BRICKS:
+ case CRACKED_STONE_BRICKS:
+ case DARK_PRISMARINE:
+ case DARK_PRISMARINE_SLAB:
+ case DARK_PRISMARINE_STAIRS:
+ case DEAD_BRAIN_CORAL_BLOCK:
+ case DEAD_BUBBLE_CORAL_BLOCK:
+ case DEAD_FIRE_CORAL_BLOCK:
+ case DEAD_HORN_CORAL_BLOCK:
+ case DEAD_TUBE_CORAL_BLOCK:
+ case DIORITE:
+ case FIRE_CORAL_BLOCK:
+ case GRANITE:
+ case HORN_CORAL_BLOCK:
+ case MOSSY_STONE_BRICKS:
+ case POLISHED_ANDESITE:
+ case POLISHED_DIORITE:
+ case POLISHED_GRANITE:
+ case PRISMARINE:
+ case PRISMARINE_BRICKS:
+ case PRISMARINE_BRICK_SLAB:
+ case PRISMARINE_BRICK_STAIRS:
+ case PRISMARINE_SLAB:
+ case PRISMARINE_STAIRS:
+ case PURPUR_BLOCK:
+ case PURPUR_PILLAR:
+ case PURPUR_STAIRS:
+ case STONE:
+ case STONE_BRICKS:
+ case STONE_BRICK_STAIRS:
+ case TUBE_CORAL_BLOCK:
+ return 1.5F;
+ case BLACK_CONCRETE:
+ case BLUE_CONCRETE:
+ case BROWN_CONCRETE:
+ case CYAN_CONCRETE:
+ case GRAY_CONCRETE:
+ case GREEN_CONCRETE:
+ case LIGHT_BLUE_CONCRETE:
+ case LIGHT_GRAY_CONCRETE:
+ case LIME_CONCRETE:
+ case MAGENTA_CONCRETE:
+ case ORANGE_CONCRETE:
+ case PINK_CONCRETE:
+ case PURPLE_CONCRETE:
+ case RED_CONCRETE:
+ case WHITE_CONCRETE:
+ case YELLOW_CONCRETE:
+ return 1.8F;
+ case ACACIA_FENCE:
+ case ACACIA_FENCE_GATE:
+ case ACACIA_LOG:
+ case ACACIA_PLANKS:
+ case ACACIA_SLAB:
+ case ACACIA_STAIRS:
+ case ACACIA_WOOD:
+ case BIRCH_FENCE:
+ case BIRCH_FENCE_GATE:
+ case BIRCH_LOG:
+ case BIRCH_PLANKS:
+ case BIRCH_SLAB:
+ case BIRCH_STAIRS:
+ case BIRCH_WOOD:
+ case BLACK_SHULKER_BOX:
+ case BLUE_SHULKER_BOX:
+ case BONE_BLOCK:
+ case BRICKS:
+ case BRICK_SLAB:
+ case BRICK_STAIRS:
+ case BROWN_SHULKER_BOX:
+ case CAULDRON:
+ case COBBLESTONE:
+ case COBBLESTONE_SLAB:
+ case COBBLESTONE_STAIRS:
+ case COBBLESTONE_WALL:
+ case CYAN_SHULKER_BOX:
+ case DARK_OAK_FENCE:
+ case DARK_OAK_FENCE_GATE:
+ case DARK_OAK_LOG:
+ case DARK_OAK_PLANKS:
+ case DARK_OAK_SLAB:
+ case DARK_OAK_STAIRS:
+ case DARK_OAK_WOOD:
+ case GRAY_SHULKER_BOX:
+ case GREEN_SHULKER_BOX:
+ case JUKEBOX:
+ case JUNGLE_FENCE:
+ case JUNGLE_FENCE_GATE:
+ case JUNGLE_LOG:
+ case JUNGLE_PLANKS:
+ case JUNGLE_SLAB:
+ case JUNGLE_STAIRS:
+ case JUNGLE_WOOD:
+ case LIGHT_BLUE_SHULKER_BOX:
+ case LIGHT_GRAY_SHULKER_BOX:
+ case LIME_SHULKER_BOX:
+ case MAGENTA_SHULKER_BOX:
+ case MOSSY_COBBLESTONE:
+ case MOSSY_COBBLESTONE_WALL:
+ case NETHER_BRICKS:
+ case NETHER_BRICK_FENCE:
+ case NETHER_BRICK_SLAB:
+ case NETHER_BRICK_STAIRS:
+ case OAK_FENCE:
+ case OAK_FENCE_GATE:
+ case OAK_LOG:
+ case OAK_PLANKS:
+ case OAK_SLAB:
+ case OAK_STAIRS:
+ case OAK_WOOD:
+ case ORANGE_SHULKER_BOX:
+ case PETRIFIED_OAK_SLAB:
+ case PINK_SHULKER_BOX:
+ case PURPLE_SHULKER_BOX:
+ case PURPUR_SLAB:
+ case QUARTZ_SLAB:
+ case RED_NETHER_BRICKS:
+ case RED_SANDSTONE_SLAB:
+ case RED_SHULKER_BOX:
+ case SANDSTONE_SLAB:
+ case SHULKER_BOX:
+ case SMOOTH_QUARTZ:
+ case SMOOTH_RED_SANDSTONE:
+ case SMOOTH_SANDSTONE:
+ case SMOOTH_STONE:
+ case SPRUCE_FENCE:
+ case SPRUCE_FENCE_GATE:
+ case SPRUCE_LOG:
+ case SPRUCE_PLANKS:
+ case SPRUCE_SLAB:
+ case SPRUCE_STAIRS:
+ case SPRUCE_WOOD:
+ case STONE_BRICK_SLAB:
+ case STONE_SLAB:
+ case STRIPPED_ACACIA_LOG:
+ case STRIPPED_ACACIA_WOOD:
+ case STRIPPED_BIRCH_LOG:
+ case STRIPPED_BIRCH_WOOD:
+ case STRIPPED_DARK_OAK_LOG:
+ case STRIPPED_DARK_OAK_WOOD:
+ case STRIPPED_JUNGLE_LOG:
+ case STRIPPED_JUNGLE_WOOD:
+ case STRIPPED_OAK_LOG:
+ case STRIPPED_OAK_WOOD:
+ case STRIPPED_SPRUCE_LOG:
+ case STRIPPED_SPRUCE_WOOD:
+ case WHITE_SHULKER_BOX:
+ case YELLOW_SHULKER_BOX:
+ return 2.0F;
+ case CHEST:
+ case CRAFTING_TABLE:
+ case TRAPPED_CHEST:
+ return 2.5F;
+ case BLUE_ICE:
+ return 2.8F;
+ case ACACIA_DOOR:
+ case ACACIA_TRAPDOOR:
+ case BEACON:
+ case BIRCH_DOOR:
+ case BIRCH_TRAPDOOR:
+ case COAL_ORE:
+ case CONDUIT:
+ case DARK_OAK_DOOR:
+ case DARK_OAK_TRAPDOOR:
+ case DIAMOND_ORE:
+ case DRAGON_EGG:
+ case EMERALD_ORE:
+ case END_STONE:
+ case GOLD_BLOCK:
+ case GOLD_ORE:
+ case HOPPER:
+ case IRON_ORE:
+ case JUNGLE_DOOR:
+ case JUNGLE_TRAPDOOR:
+ case LAPIS_BLOCK:
+ case LAPIS_ORE:
+ case NETHER_QUARTZ_ORE:
+ case OAK_DOOR:
+ case OAK_TRAPDOOR:
+ case OBSERVER:
+ case REDSTONE_ORE:
+ case SPRUCE_DOOR:
+ case SPRUCE_TRAPDOOR:
+ return 3.0F;
+ case DISPENSER:
+ case DROPPER:
+ case FURNACE:
+ return 3.5F;
+ case COBWEB:
+ return 4.0F;
+ case ANVIL:
+ case CHIPPED_ANVIL:
+ case COAL_BLOCK:
+ case DAMAGED_ANVIL:
+ case DIAMOND_BLOCK:
+ case EMERALD_BLOCK:
+ case ENCHANTING_TABLE:
+ case IRON_BARS:
+ case IRON_BLOCK:
+ case IRON_DOOR:
+ case IRON_TRAPDOOR:
+ case REDSTONE_BLOCK:
+ case SPAWNER:
+ return 5.0F;
+ case ENDER_CHEST:
+ return 22.5F;
+ case OBSIDIAN:
+ return 50.0F;
+ case LAVA:
+ case WATER:
+ return 100.0F;
+ default:
+ return 0F;
+ // </editor-fold>
+ }
+ }
+
+ /**
+ * Obtains the blast resistance value (also known as block "durability").
+ * <br>
+ * This value is used in explosions to calculate whether a block should be
+ * broken or not.
+ * <br>
+ * Only available when {@link #isBlock()} is true.
+ *
+ * @return the blast resistance of that material.
+ */
+ public float getBlastResistance() {
+ Validate.isTrue(isBlock(), "The Material is not a block!");
+ switch (this) {
+ // <editor-fold defaultstate="collapsed" desc="getBlastResistance">
+ case BLACK_CARPET:
+ case BLUE_CARPET:
+ case BROWN_CARPET:
+ case CYAN_CARPET:
+ case GRAY_CARPET:
+ case GREEN_CARPET:
+ case LIGHT_BLUE_CARPET:
+ case LIGHT_GRAY_CARPET:
+ case LIME_CARPET:
+ case MAGENTA_CARPET:
+ case ORANGE_CARPET:
+ case PINK_CARPET:
+ case PURPLE_CARPET:
+ case RED_CARPET:
+ case SNOW:
+ case WHITE_CARPET:
+ case YELLOW_CARPET:
+ return 0.1F;
+ case ACACIA_LEAVES:
+ case BIRCH_LEAVES:
+ case BLACK_BED:
+ case BLUE_BED:
+ case BROWN_BED:
+ case BROWN_MUSHROOM_BLOCK:
+ case CYAN_BED:
+ case DARK_OAK_LEAVES:
+ case DAYLIGHT_DETECTOR:
+ case GRAY_BED:
+ case GREEN_BED:
+ case JUNGLE_LEAVES:
+ case LIGHT_BLUE_BED:
+ case LIGHT_GRAY_BED:
+ case LIME_BED:
+ case MAGENTA_BED:
+ case MUSHROOM_STEM:
+ case OAK_LEAVES:
+ case ORANGE_BED:
+ case PINK_BED:
+ case PURPLE_BED:
+ case RED_BED:
+ case RED_MUSHROOM_BLOCK:
+ case SNOW_BLOCK:
+ case SPRUCE_LEAVES:
+ case VINE:
+ case WHITE_BED:
+ case YELLOW_BED:
+ return 0.2F;
+ case BLACK_STAINED_GLASS:
+ case BLACK_STAINED_GLASS_PANE:
+ case BLUE_STAINED_GLASS:
+ case BLUE_STAINED_GLASS_PANE:
+ case BROWN_STAINED_GLASS:
+ case BROWN_STAINED_GLASS_PANE:
+ case CYAN_STAINED_GLASS:
+ case CYAN_STAINED_GLASS_PANE:
+ case GLASS:
+ case GLASS_PANE:
+ case GLOWSTONE:
+ case GRAY_STAINED_GLASS:
+ case GRAY_STAINED_GLASS_PANE:
+ case GREEN_STAINED_GLASS:
+ case GREEN_STAINED_GLASS_PANE:
+ case LIGHT_BLUE_STAINED_GLASS:
+ case LIGHT_BLUE_STAINED_GLASS_PANE:
+ case LIGHT_GRAY_STAINED_GLASS:
+ case LIGHT_GRAY_STAINED_GLASS_PANE:
+ case LIME_STAINED_GLASS:
+ case LIME_STAINED_GLASS_PANE:
+ case MAGENTA_STAINED_GLASS:
+ case MAGENTA_STAINED_GLASS_PANE:
+ case ORANGE_STAINED_GLASS:
+ case ORANGE_STAINED_GLASS_PANE:
+ case PINK_STAINED_GLASS:
+ case PINK_STAINED_GLASS_PANE:
+ case PURPLE_STAINED_GLASS:
+ case PURPLE_STAINED_GLASS_PANE:
+ case REDSTONE_LAMP:
+ case RED_STAINED_GLASS:
+ case RED_STAINED_GLASS_PANE:
+ case SEA_LANTERN:
+ case WHITE_STAINED_GLASS:
+ case WHITE_STAINED_GLASS_PANE:
+ case YELLOW_STAINED_GLASS:
+ case YELLOW_STAINED_GLASS_PANE:
+ return 0.3F;
+ case CACTUS:
+ case CHORUS_FLOWER:
+ case CHORUS_PLANT:
+ case LADDER:
+ case NETHERRACK:
+ return 0.4F;
+ case ACACIA_BUTTON:
+ case ACACIA_PRESSURE_PLATE:
+ case BIRCH_BUTTON:
+ case BIRCH_PRESSURE_PLATE:
+ case BLACK_CONCRETE_POWDER:
+ case BLUE_CONCRETE_POWDER:
+ case BREWING_STAND:
+ case BROWN_CONCRETE_POWDER:
+ case CAKE:
+ case COARSE_DIRT:
+ case CYAN_CONCRETE_POWDER:
+ case DARK_OAK_BUTTON:
+ case DARK_OAK_PRESSURE_PLATE:
+ case DIRT:
+ case FROSTED_ICE:
+ case GRAY_CONCRETE_POWDER:
+ case GREEN_CONCRETE_POWDER:
+ case HAY_BLOCK:
+ case HEAVY_WEIGHTED_PRESSURE_PLATE:
+ case ICE:
+ case JUNGLE_BUTTON:
+ case JUNGLE_PRESSURE_PLATE:
+ case LEVER:
+ case LIGHT_BLUE_CONCRETE_POWDER:
+ case LIGHT_GRAY_CONCRETE_POWDER:
+ case LIGHT_WEIGHTED_PRESSURE_PLATE:
+ case LIME_CONCRETE_POWDER:
+ case MAGENTA_CONCRETE_POWDER:
+ case MAGMA_BLOCK:
+ case OAK_BUTTON:
+ case OAK_PRESSURE_PLATE:
+ case ORANGE_CONCRETE_POWDER:
+ case PACKED_ICE:
+ case PINK_CONCRETE_POWDER:
+ case PISTON:
+ case PISTON_HEAD:
+ case PODZOL:
+ case PURPLE_CONCRETE_POWDER:
+ case RED_CONCRETE_POWDER:
+ case RED_SAND:
+ case SAND:
+ case SOUL_SAND:
+ case SPRUCE_BUTTON:
+ case SPRUCE_PRESSURE_PLATE:
+ case STICKY_PISTON:
+ case STONE_BUTTON:
+ case STONE_PRESSURE_PLATE:
+ case TURTLE_EGG:
+ case WHITE_CONCRETE_POWDER:
+ case YELLOW_CONCRETE_POWDER:
+ return 0.5F;
+ case CLAY:
+ case FARMLAND:
+ case GRASS_BLOCK:
+ case GRAVEL:
+ case MYCELIUM:
+ case SPONGE:
+ case WET_SPONGE:
+ return 0.6F;
+ case GRASS_PATH:
+ return 0.65F;
+ case ACTIVATOR_RAIL:
+ case DETECTOR_RAIL:
+ case POWERED_RAIL:
+ case RAIL:
+ return 0.7F;
+ case INFESTED_CHISELED_STONE_BRICKS:
+ case INFESTED_COBBLESTONE:
+ case INFESTED_CRACKED_STONE_BRICKS:
+ case INFESTED_MOSSY_STONE_BRICKS:
+ case INFESTED_STONE:
+ case INFESTED_STONE_BRICKS:
+ return 0.75F;
+ case BLACK_WOOL:
+ case BLUE_WOOL:
+ case BROWN_WOOL:
+ case CHISELED_QUARTZ_BLOCK:
+ case CHISELED_RED_SANDSTONE:
+ case CHISELED_SANDSTONE:
+ case CUT_RED_SANDSTONE:
+ case CUT_SANDSTONE:
+ case CYAN_WOOL:
+ case END_STONE_BRICKS:
+ case GRAY_WOOL:
+ case GREEN_WOOL:
+ case LIGHT_BLUE_WOOL:
+ case LIGHT_GRAY_WOOL:
+ case LIME_WOOL:
+ case MAGENTA_WOOL:
+ case NOTE_BLOCK:
+ case ORANGE_WOOL:
+ case PINK_WOOL:
+ case PURPLE_WOOL:
+ case QUARTZ_BLOCK:
+ case QUARTZ_PILLAR:
+ case QUARTZ_STAIRS:
+ case RED_SANDSTONE:
+ case RED_SANDSTONE_STAIRS:
+ case RED_WOOL:
+ case SANDSTONE:
+ case SANDSTONE_STAIRS:
+ case WHITE_WOOL:
+ case YELLOW_WOOL:
+ return 0.8F;
+ case BLACK_BANNER:
+ case BLACK_WALL_BANNER:
+ case BLUE_BANNER:
+ case BLUE_WALL_BANNER:
+ case BROWN_BANNER:
+ case BROWN_WALL_BANNER:
+ case CARVED_PUMPKIN:
+ case CREEPER_HEAD:
+ case CREEPER_WALL_HEAD:
+ case CYAN_BANNER:
+ case CYAN_WALL_BANNER:
+ case DRAGON_HEAD:
+ case DRAGON_WALL_HEAD:
+ case GRAY_BANNER:
+ case GRAY_WALL_BANNER:
+ case GREEN_BANNER:
+ case GREEN_WALL_BANNER:
+ case JACK_O_LANTERN:
+ case LIGHT_BLUE_BANNER:
+ case LIGHT_BLUE_WALL_BANNER:
+ case LIGHT_GRAY_BANNER:
+ case LIGHT_GRAY_WALL_BANNER:
+ case LIME_BANNER:
+ case LIME_WALL_BANNER:
+ case MAGENTA_BANNER:
+ case MAGENTA_WALL_BANNER:
+ case MELON:
+ case NETHER_WART_BLOCK:
+ case ORANGE_BANNER:
+ case ORANGE_WALL_BANNER:
+ case PINK_BANNER:
+ case PINK_WALL_BANNER:
+ case PLAYER_HEAD:
+ case PLAYER_WALL_HEAD:
+ case PUMPKIN:
+ case PURPLE_BANNER:
+ case PURPLE_WALL_BANNER:
+ case RED_BANNER:
+ case RED_WALL_BANNER:
+ case SIGN:
+ case SKELETON_SKULL:
+ case SKELETON_WALL_SKULL:
+ case WALL_SIGN:
+ case WHITE_BANNER:
+ case WHITE_WALL_BANNER:
+ case WITHER_SKELETON_SKULL:
+ case WITHER_SKELETON_WALL_SKULL:
+ case YELLOW_BANNER:
+ case YELLOW_WALL_BANNER:
+ case ZOMBIE_HEAD:
+ case ZOMBIE_WALL_HEAD:
+ return 1.0F;
+ case BLACK_GLAZED_TERRACOTTA:
+ case BLUE_GLAZED_TERRACOTTA:
+ case BROWN_GLAZED_TERRACOTTA:
+ case CYAN_GLAZED_TERRACOTTA:
+ case GRAY_GLAZED_TERRACOTTA:
+ case GREEN_GLAZED_TERRACOTTA:
+ case LIGHT_BLUE_GLAZED_TERRACOTTA:
+ case LIGHT_GRAY_GLAZED_TERRACOTTA:
+ case LIME_GLAZED_TERRACOTTA:
+ case MAGENTA_GLAZED_TERRACOTTA:
+ case ORANGE_GLAZED_TERRACOTTA:
+ case PINK_GLAZED_TERRACOTTA:
+ case PURPLE_GLAZED_TERRACOTTA:
+ case RED_GLAZED_TERRACOTTA:
+ case WHITE_GLAZED_TERRACOTTA:
+ case YELLOW_GLAZED_TERRACOTTA:
+ return 1.4F;
+ case BOOKSHELF:
+ return 1.5F;
+ case BLACK_CONCRETE:
+ case BLUE_CONCRETE:
+ case BROWN_CONCRETE:
+ case CYAN_CONCRETE:
+ case GRAY_CONCRETE:
+ case GREEN_CONCRETE:
+ case LIGHT_BLUE_CONCRETE:
+ case LIGHT_GRAY_CONCRETE:
+ case LIME_CONCRETE:
+ case MAGENTA_CONCRETE:
+ case ORANGE_CONCRETE:
+ case PINK_CONCRETE:
+ case PURPLE_CONCRETE:
+ case RED_CONCRETE:
+ case WHITE_CONCRETE:
+ case YELLOW_CONCRETE:
+ return 1.8F;
+ case ACACIA_LOG:
+ case ACACIA_WOOD:
+ case BIRCH_LOG:
+ case BIRCH_WOOD:
+ case BLACK_SHULKER_BOX:
+ case BLUE_SHULKER_BOX:
+ case BONE_BLOCK:
+ case BROWN_SHULKER_BOX:
+ case CAULDRON:
+ case CYAN_SHULKER_BOX:
+ case DARK_OAK_LOG:
+ case DARK_OAK_WOOD:
+ case GRAY_SHULKER_BOX:
+ case GREEN_SHULKER_BOX:
+ case JUNGLE_LOG:
+ case JUNGLE_WOOD:
+ case LIGHT_BLUE_SHULKER_BOX:
+ case LIGHT_GRAY_SHULKER_BOX:
+ case LIME_SHULKER_BOX:
+ case MAGENTA_SHULKER_BOX:
+ case OAK_LOG:
+ case OAK_WOOD:
+ case ORANGE_SHULKER_BOX:
+ case PINK_SHULKER_BOX:
+ case PURPLE_SHULKER_BOX:
+ case RED_SHULKER_BOX:
+ case SHULKER_BOX:
+ case SPRUCE_LOG:
+ case SPRUCE_WOOD:
+ case STRIPPED_ACACIA_LOG:
+ case STRIPPED_ACACIA_WOOD:
+ case STRIPPED_BIRCH_LOG:
+ case STRIPPED_BIRCH_WOOD:
+ case STRIPPED_DARK_OAK_LOG:
+ case STRIPPED_DARK_OAK_WOOD:
+ case STRIPPED_JUNGLE_LOG:
+ case STRIPPED_JUNGLE_WOOD:
+ case STRIPPED_OAK_LOG:
+ case STRIPPED_OAK_WOOD:
+ case STRIPPED_SPRUCE_LOG:
+ case STRIPPED_SPRUCE_WOOD:
+ case WHITE_SHULKER_BOX:
+ case YELLOW_SHULKER_BOX:
+ return 2.0F;
+ case CHEST:
+ case CRAFTING_TABLE:
+ case DRIED_KELP_BLOCK:
+ case TRAPPED_CHEST:
+ return 2.5F;
+ case BLUE_ICE:
+ return 2.8F;
+ case ACACIA_DOOR:
+ case ACACIA_FENCE:
+ case ACACIA_FENCE_GATE:
+ case ACACIA_PLANKS:
+ case ACACIA_SLAB:
+ case ACACIA_STAIRS:
+ case ACACIA_TRAPDOOR:
+ case BEACON:
+ case BIRCH_DOOR:
+ case BIRCH_FENCE:
+ case BIRCH_FENCE_GATE:
+ case BIRCH_PLANKS:
+ case BIRCH_SLAB:
+ case BIRCH_STAIRS:
+ case BIRCH_TRAPDOOR:
+ case COAL_ORE:
+ case COCOA:
+ case CONDUIT:
+ case DARK_OAK_DOOR:
+ case DARK_OAK_FENCE:
+ case DARK_OAK_FENCE_GATE:
+ case DARK_OAK_PLANKS:
+ case DARK_OAK_SLAB:
+ case DARK_OAK_STAIRS:
+ case DARK_OAK_TRAPDOOR:
+ case DIAMOND_ORE:
+ case EMERALD_ORE:
+ case GOLD_ORE:
+ case IRON_ORE:
+ case JUNGLE_DOOR:
+ case JUNGLE_FENCE:
+ case JUNGLE_FENCE_GATE:
+ case JUNGLE_PLANKS:
+ case JUNGLE_SLAB:
+ case JUNGLE_STAIRS:
+ case JUNGLE_TRAPDOOR:
+ case LAPIS_BLOCK:
+ case LAPIS_ORE:
+ case NETHER_QUARTZ_ORE:
+ case OAK_DOOR:
+ case OAK_FENCE:
+ case OAK_FENCE_GATE:
+ case OAK_PLANKS:
+ case OAK_SLAB:
+ case OAK_STAIRS:
+ case OAK_TRAPDOOR:
+ case OBSERVER:
+ case REDSTONE_ORE:
+ case SPRUCE_DOOR:
+ case SPRUCE_FENCE:
+ case SPRUCE_FENCE_GATE:
+ case SPRUCE_PLANKS:
+ case SPRUCE_SLAB:
+ case SPRUCE_STAIRS:
+ case SPRUCE_TRAPDOOR:
+ return 3.0F;
+ case DISPENSER:
+ case DROPPER:
+ case FURNACE:
+ return 3.5F;
+ case COBWEB:
+ return 4.0F;
+ case BLACK_TERRACOTTA:
+ case BLUE_TERRACOTTA:
+ case BROWN_TERRACOTTA:
+ case CYAN_TERRACOTTA:
+ case GRAY_TERRACOTTA:
+ case GREEN_TERRACOTTA:
+ case LIGHT_BLUE_TERRACOTTA:
+ case LIGHT_GRAY_TERRACOTTA:
+ case LIME_TERRACOTTA:
+ case MAGENTA_TERRACOTTA:
+ case ORANGE_TERRACOTTA:
+ case PINK_TERRACOTTA:
+ case PURPLE_TERRACOTTA:
+ case RED_TERRACOTTA:
+ case TERRACOTTA:
+ case WHITE_TERRACOTTA:
+ case YELLOW_TERRACOTTA:
+ return 4.2F;
+ case HOPPER:
+ return 4.8F;
+ case IRON_DOOR:
+ case IRON_TRAPDOOR:
+ case SPAWNER:
+ return 5.0F;
+ case ANDESITE:
+ case BRAIN_CORAL_BLOCK:
+ case BRICKS:
+ case BRICK_SLAB:
+ case BRICK_STAIRS:
+ case BUBBLE_CORAL_BLOCK:
+ case CHISELED_STONE_BRICKS:
+ case COAL_BLOCK:
+ case COBBLESTONE:
+ case COBBLESTONE_SLAB:
+ case COBBLESTONE_STAIRS:
+ case COBBLESTONE_WALL:
+ case CRACKED_STONE_BRICKS:
+ case DARK_PRISMARINE:
+ case DARK_PRISMARINE_SLAB:
+ case DARK_PRISMARINE_STAIRS:
+ case DEAD_BRAIN_CORAL_BLOCK:
+ case DEAD_BUBBLE_CORAL_BLOCK:
+ case DEAD_FIRE_CORAL_BLOCK:
+ case DEAD_HORN_CORAL_BLOCK:
+ case DEAD_TUBE_CORAL_BLOCK:
+ case DIAMOND_BLOCK:
+ case DIORITE:
+ case EMERALD_BLOCK:
+ case FIRE_CORAL_BLOCK:
+ case GOLD_BLOCK:
+ case GRANITE:
+ case HORN_CORAL_BLOCK:
+ case IRON_BARS:
+ case IRON_BLOCK:
+ case JUKEBOX:
+ case MOSSY_COBBLESTONE:
+ case MOSSY_COBBLESTONE_WALL:
+ case MOSSY_STONE_BRICKS:
+ case NETHER_BRICKS:
+ case NETHER_BRICK_FENCE:
+ case NETHER_BRICK_SLAB:
+ case NETHER_BRICK_STAIRS:
+ case PETRIFIED_OAK_SLAB:
+ case POLISHED_ANDESITE:
+ case POLISHED_DIORITE:
+ case POLISHED_GRANITE:
+ case PRISMARINE:
+ case PRISMARINE_BRICKS:
+ case PRISMARINE_BRICK_SLAB:
+ case PRISMARINE_BRICK_STAIRS:
+ case PRISMARINE_SLAB:
+ case PRISMARINE_STAIRS:
+ case PURPUR_BLOCK:
+ case PURPUR_PILLAR:
+ case PURPUR_SLAB:
+ case PURPUR_STAIRS:
+ case QUARTZ_SLAB:
+ case REDSTONE_BLOCK:
+ case RED_NETHER_BRICKS:
+ case RED_SANDSTONE_SLAB:
+ case SANDSTONE_SLAB:
+ case SMOOTH_QUARTZ:
+ case SMOOTH_RED_SANDSTONE:
+ case SMOOTH_SANDSTONE:
+ case SMOOTH_STONE:
+ case STONE:
+ case STONE_BRICKS:
+ case STONE_BRICK_SLAB:
+ case STONE_BRICK_STAIRS:
+ case STONE_SLAB:
+ case TUBE_CORAL_BLOCK:
+ return 6.0F;
+ case DRAGON_EGG:
+ case END_STONE:
+ return 9.0F;
+ case LAVA:
+ case WATER:
+ return 100.0F;
+ case ENDER_CHEST:
+ return 600.0F;
+ case ANVIL:
+ case CHIPPED_ANVIL:
+ case DAMAGED_ANVIL:
+ case ENCHANTING_TABLE:
+ case OBSIDIAN:
+ return 1200.0F;
+ case BEDROCK:
+ case CHAIN_COMMAND_BLOCK:
+ case COMMAND_BLOCK:
+ case END_GATEWAY:
+ case END_PORTAL:
+ case END_PORTAL_FRAME:
+ case REPEATING_COMMAND_BLOCK:
+ case STRUCTURE_BLOCK:
+ return 3600000.0F;
+ case BARRIER:
+ return 3600000.8F;
+ default:
+ return 0;
+ // </editor-fold>
+ }
+ }
}