Java Code Examples for cn.nukkit.utils.BlockColor#SAND_BLOCK_COLOR
The following examples show how to use
cn.nukkit.utils.BlockColor#SAND_BLOCK_COLOR .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BlockDoubleSlab.java From Jupiter with GNU General Public License v3.0 | 6 votes |
@Override public BlockColor getColor() { switch (this.meta & 0x07) { case BlockDoubleSlab.STONE: return BlockColor.STONE_BLOCK_COLOR; case BlockDoubleSlab.SANDSTONE: return BlockColor.SAND_BLOCK_COLOR; case BlockDoubleSlab.WOODEN: return BlockColor.WOOD_BLOCK_COLOR; case BlockDoubleSlab.COBBLESTONE: return BlockColor.STONE_BLOCK_COLOR; case BlockDoubleSlab.BRICK: return BlockColor.STONE_BLOCK_COLOR; case BlockDoubleSlab.STONE_BRICK: return BlockColor.STONE_BLOCK_COLOR; case BlockDoubleSlab.QUARTZ: return BlockColor.QUARTZ_BLOCK_COLOR; case BlockDoubleSlab.NETHER_BRICK: return BlockColor.NETHERRACK_BLOCK_COLOR; default: return BlockColor.STONE_BLOCK_COLOR; //unreachable } }
Example 2
Source File: BlockDoubleSlabStone.java From Nukkit with GNU General Public License v3.0 | 6 votes |
@Override public BlockColor getColor() { switch (this.getDamage() & 0x07) { case BlockDoubleSlabStone.STONE: return BlockColor.STONE_BLOCK_COLOR; case BlockDoubleSlabStone.SANDSTONE: return BlockColor.SAND_BLOCK_COLOR; case BlockDoubleSlabStone.WOODEN: return BlockColor.WOOD_BLOCK_COLOR; case BlockDoubleSlabStone.COBBLESTONE: return BlockColor.STONE_BLOCK_COLOR; case BlockDoubleSlabStone.BRICK: return BlockColor.STONE_BLOCK_COLOR; case BlockDoubleSlabStone.STONE_BRICK: return BlockColor.STONE_BLOCK_COLOR; case BlockDoubleSlabStone.QUARTZ: return BlockColor.QUARTZ_BLOCK_COLOR; case BlockDoubleSlabStone.NETHER_BRICK: return BlockColor.NETHERRACK_BLOCK_COLOR; default: return BlockColor.STONE_BLOCK_COLOR; //unreachable } }
Example 3
Source File: BlockFence.java From Nukkit with GNU General Public License v3.0 | 6 votes |
@Override public BlockColor getColor() { switch(this.getDamage() & 0x07){ default: case BlockFence.FENCE_OAK: //OAK return BlockColor.WOOD_BLOCK_COLOR; case BlockFence.FENCE_SPRUCE: //SPRUCE return BlockColor.SPRUCE_BLOCK_COLOR; case BlockFence.FENCE_BIRCH: //BIRCH return BlockColor.SAND_BLOCK_COLOR; case BlockFence.FENCE_JUNGLE: //JUNGLE return BlockColor.DIRT_BLOCK_COLOR; case BlockFence.FENCE_ACACIA: //ACACIA return BlockColor.ORANGE_BLOCK_COLOR; case BlockFence.FENCE_DARK_OAK: //DARK OAK return BlockColor.BROWN_BLOCK_COLOR; } }
Example 4
Source File: BlockDoubleSlabStone.java From Nukkit with GNU General Public License v3.0 | 6 votes |
@Override public BlockColor getColor() { switch (this.getDamage() & 0x07) { default: case BlockDoubleSlabStone.STONE: case BlockDoubleSlabStone.COBBLESTONE: case BlockDoubleSlabStone.BRICK: case BlockDoubleSlabStone.STONE_BRICK: return BlockColor.STONE_BLOCK_COLOR; case BlockDoubleSlabStone.SANDSTONE: return BlockColor.SAND_BLOCK_COLOR; case BlockDoubleSlabStone.WOODEN: return BlockColor.WOOD_BLOCK_COLOR; case BlockDoubleSlabStone.QUARTZ: return BlockColor.QUARTZ_BLOCK_COLOR; case BlockDoubleSlabStone.NETHER_BRICK: return BlockColor.NETHERRACK_BLOCK_COLOR; } }
Example 5
Source File: BlockSlabStone.java From Jupiter with GNU General Public License v3.0 | 6 votes |
@Override public BlockColor getColor() { switch (this.meta & 0x07) { case STONE: return BlockColor.STONE_BLOCK_COLOR; case SANDSTONE: return BlockColor.SAND_BLOCK_COLOR; case WOODEN: return BlockColor.WOOD_BLOCK_COLOR; case COBBLESTONE: return BlockColor.STONE_BLOCK_COLOR; case BRICK: return BlockColor.STONE_BLOCK_COLOR; case STONE_BRICK: return BlockColor.STONE_BLOCK_COLOR; case QUARTZ: return BlockColor.QUARTZ_BLOCK_COLOR; case NETHER_BRICK: return BlockColor.NETHERRACK_BLOCK_COLOR; default: return BlockColor.STONE_BLOCK_COLOR; //unreachable } }
Example 6
Source File: BlockDoubleSlabStone.java From Jupiter with GNU General Public License v3.0 | 6 votes |
@Override public BlockColor getColor() { switch (this.meta & 0x07) { case BlockDoubleSlabStone.STONE: return BlockColor.STONE_BLOCK_COLOR; case BlockDoubleSlabStone.SANDSTONE: return BlockColor.SAND_BLOCK_COLOR; case BlockDoubleSlabStone.WOODEN: return BlockColor.WOOD_BLOCK_COLOR; case BlockDoubleSlabStone.COBBLESTONE: return BlockColor.STONE_BLOCK_COLOR; case BlockDoubleSlabStone.BRICK: return BlockColor.STONE_BLOCK_COLOR; case BlockDoubleSlabStone.STONE_BRICK: return BlockColor.STONE_BLOCK_COLOR; case BlockDoubleSlabStone.QUARTZ: return BlockColor.QUARTZ_BLOCK_COLOR; case BlockDoubleSlabStone.NETHER_BRICK: return BlockColor.NETHERRACK_BLOCK_COLOR; default: return BlockColor.STONE_BLOCK_COLOR; //unreachable } }
Example 7
Source File: BlockSlabStone.java From Nukkit with GNU General Public License v3.0 | 6 votes |
@Override public BlockColor getColor() { switch (this.getDamage() & 0x07) { case STONE: return BlockColor.STONE_BLOCK_COLOR; case SANDSTONE: return BlockColor.SAND_BLOCK_COLOR; case WOODEN: return BlockColor.WOOD_BLOCK_COLOR; case COBBLESTONE: return BlockColor.STONE_BLOCK_COLOR; case BRICK: return BlockColor.STONE_BLOCK_COLOR; case STONE_BRICK: return BlockColor.STONE_BLOCK_COLOR; case QUARTZ: return BlockColor.QUARTZ_BLOCK_COLOR; case NETHER_BRICK: return BlockColor.NETHERRACK_BLOCK_COLOR; default: return BlockColor.STONE_BLOCK_COLOR; //unreachable } }
Example 8
Source File: BlockWood.java From Nukkit with GNU General Public License v3.0 | 5 votes |
@Override public BlockColor getColor() { switch(getDamage() & 0x07){ default: case OAK: return BlockColor.WOOD_BLOCK_COLOR; case SPRUCE: return BlockColor.SPRUCE_BLOCK_COLOR; case BIRCH: return BlockColor.SAND_BLOCK_COLOR; case JUNGLE: return BlockColor.DIRT_BLOCK_COLOR; } }
Example 9
Source File: BlockSandstone.java From Jupiter with GNU General Public License v3.0 | 4 votes |
@Override public BlockColor getColor() { return BlockColor.SAND_BLOCK_COLOR; }
Example 10
Source File: BlockSoulSand.java From Jupiter with GNU General Public License v3.0 | 4 votes |
@Override public BlockColor getColor() { return BlockColor.SAND_BLOCK_COLOR; }
Example 11
Source File: BlockStairsSandstone.java From Jupiter with GNU General Public License v3.0 | 4 votes |
@Override public BlockColor getColor() { return BlockColor.SAND_BLOCK_COLOR; }
Example 12
Source File: BlockGlowstone.java From Nukkit with GNU General Public License v3.0 | 4 votes |
@Override public BlockColor getColor() { return BlockColor.SAND_BLOCK_COLOR; }
Example 13
Source File: BlockEndStone.java From Jupiter with GNU General Public License v3.0 | 4 votes |
@Override public BlockColor getColor(){ return BlockColor.SAND_BLOCK_COLOR; }
Example 14
Source File: BlockFenceGateBirch.java From Nukkit with GNU General Public License v3.0 | 4 votes |
@Override public BlockColor getColor() { return BlockColor.SAND_BLOCK_COLOR; }
Example 15
Source File: BlockDoorBirch.java From Nukkit with GNU General Public License v3.0 | 4 votes |
@Override public BlockColor getColor() { return BlockColor.SAND_BLOCK_COLOR; }
Example 16
Source File: BlockStairsBirch.java From Nukkit with GNU General Public License v3.0 | 4 votes |
@Override public BlockColor getColor() { return BlockColor.SAND_BLOCK_COLOR; }
Example 17
Source File: BlockBone.java From Nukkit with GNU General Public License v3.0 | 4 votes |
@Override public BlockColor getColor() { return BlockColor.SAND_BLOCK_COLOR; }
Example 18
Source File: BlockSoulSand.java From Nukkit with GNU General Public License v3.0 | 4 votes |
@Override public BlockColor getColor() { return BlockColor.SAND_BLOCK_COLOR; }
Example 19
Source File: BlockSand.java From Jupiter with GNU General Public License v3.0 | 4 votes |
@Override public BlockColor getColor() { return BlockColor.SAND_BLOCK_COLOR; }
Example 20
Source File: BlockGravel.java From Nukkit with GNU General Public License v3.0 | 4 votes |
@Override public BlockColor getColor() { return BlockColor.SAND_BLOCK_COLOR; }