Check if the material is a block and solid (can be built upon) @return True if this material is a block and solid
()
| 4686 | * @return True if this material is a block and solid |
| 4687 | */ |
| 4688 | public boolean isSolid() { |
| 4689 | if (!isBlock() || id == 0) { |
| 4690 | return false; |
| 4691 | } |
| 4692 | switch (this) { |
| 4693 | //<editor-fold defaultstate="collapsed" desc="isSolid"> |
| 4694 | case ACACIA_DOOR: |
| 4695 | case ACACIA_FENCE: |
| 4696 | case ACACIA_FENCE_GATE: |
| 4697 | case ACACIA_LEAVES: |
| 4698 | case ACACIA_LOG: |
| 4699 | case ACACIA_PLANKS: |
| 4700 | case ACACIA_PRESSURE_PLATE: |
| 4701 | case ACACIA_SIGN: |
| 4702 | case ACACIA_SLAB: |
| 4703 | case ACACIA_STAIRS: |
| 4704 | case ACACIA_TRAPDOOR: |
| 4705 | case ACACIA_WALL_SIGN: |
| 4706 | case ACACIA_WOOD: |
| 4707 | case ANCIENT_DEBRIS: |
| 4708 | case ANDESITE: |
| 4709 | case ANDESITE_SLAB: |
| 4710 | case ANDESITE_STAIRS: |
| 4711 | case ANDESITE_WALL: |
| 4712 | case ANVIL: |
| 4713 | case BAMBOO: |
| 4714 | case BARREL: |
| 4715 | case BARRIER: |
| 4716 | case BASALT: |
| 4717 | case BEACON: |
| 4718 | case BEDROCK: |
| 4719 | case BEEHIVE: |
| 4720 | case BEE_NEST: |
| 4721 | case BELL: |
| 4722 | case BIRCH_DOOR: |
| 4723 | case BIRCH_FENCE: |
| 4724 | case BIRCH_FENCE_GATE: |
| 4725 | case BIRCH_LEAVES: |
| 4726 | case BIRCH_LOG: |
| 4727 | case BIRCH_PLANKS: |
| 4728 | case BIRCH_PRESSURE_PLATE: |
| 4729 | case BIRCH_SIGN: |
| 4730 | case BIRCH_SLAB: |
| 4731 | case BIRCH_STAIRS: |
| 4732 | case BIRCH_TRAPDOOR: |
| 4733 | case BIRCH_WALL_SIGN: |
| 4734 | case BIRCH_WOOD: |
| 4735 | case BLACKSTONE: |
| 4736 | case BLACKSTONE_SLAB: |
| 4737 | case BLACKSTONE_STAIRS: |
| 4738 | case BLACKSTONE_WALL: |
| 4739 | case BLACK_BANNER: |
| 4740 | case BLACK_BED: |
| 4741 | case BLACK_CONCRETE: |
| 4742 | case BLACK_CONCRETE_POWDER: |
| 4743 | case BLACK_GLAZED_TERRACOTTA: |
| 4744 | case BLACK_SHULKER_BOX: |
| 4745 | case BLACK_STAINED_GLASS: |
no test coverage detected