Check if the material is a block and does not block any light @return True if this material is a block and does not block any light @deprecated currently does not have an implementation which is well linked to the underlying server. Contributions welcome.
()
| 5512 | * linked to the underlying server. Contributions welcome. |
| 5513 | */ |
| 5514 | @Deprecated |
| 5515 | public boolean isTransparent() { |
| 5516 | if (!isBlock()) { |
| 5517 | return false; |
| 5518 | } |
| 5519 | switch (this) { |
| 5520 | //<editor-fold defaultstate="collapsed" desc="isTransparent"> |
| 5521 | case ACACIA_BUTTON: |
| 5522 | case ACACIA_SAPLING: |
| 5523 | case ACTIVATOR_RAIL: |
| 5524 | case AIR: |
| 5525 | case ALLIUM: |
| 5526 | case ATTACHED_MELON_STEM: |
| 5527 | case ATTACHED_PUMPKIN_STEM: |
| 5528 | case AZURE_BLUET: |
| 5529 | case BARRIER: |
| 5530 | case BEETROOTS: |
| 5531 | case BIRCH_BUTTON: |
| 5532 | case BIRCH_SAPLING: |
| 5533 | case BLACK_CARPET: |
| 5534 | case BLUE_CARPET: |
| 5535 | case BLUE_ORCHID: |
| 5536 | case BROWN_CARPET: |
| 5537 | case BROWN_MUSHROOM: |
| 5538 | case CARROTS: |
| 5539 | case CAVE_AIR: |
| 5540 | case CHORUS_FLOWER: |
| 5541 | case CHORUS_PLANT: |
| 5542 | case COCOA: |
| 5543 | case COMPARATOR: |
| 5544 | case CREEPER_HEAD: |
| 5545 | case CREEPER_WALL_HEAD: |
| 5546 | case CYAN_CARPET: |
| 5547 | case DANDELION: |
| 5548 | case DARK_OAK_BUTTON: |
| 5549 | case DARK_OAK_SAPLING: |
| 5550 | case DEAD_BUSH: |
| 5551 | case DETECTOR_RAIL: |
| 5552 | case DRAGON_HEAD: |
| 5553 | case DRAGON_WALL_HEAD: |
| 5554 | case END_GATEWAY: |
| 5555 | case END_PORTAL: |
| 5556 | case END_ROD: |
| 5557 | case FERN: |
| 5558 | case FIRE: |
| 5559 | case FLOWER_POT: |
| 5560 | case GRASS: |
| 5561 | case GRAY_CARPET: |
| 5562 | case GREEN_CARPET: |
| 5563 | case JUNGLE_BUTTON: |
| 5564 | case JUNGLE_SAPLING: |
| 5565 | case LADDER: |
| 5566 | case LARGE_FERN: |
| 5567 | case LEVER: |
| 5568 | case LIGHT_BLUE_CARPET: |
| 5569 | case LIGHT_GRAY_CARPET: |
| 5570 | case LILAC: |
| 5571 | case LILY_PAD: |
no test coverage detected