Java Code Examples for cn.nukkit.utils.BlockColor#QUARTZ_BLOCK_COLOR

The following examples show how to use cn.nukkit.utils.BlockColor#QUARTZ_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 vote down vote up
@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 Jupiter with GNU General Public License v3.0 6 votes vote down vote up
@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 3
Source File: BlockSlabStone.java    From Jupiter with GNU General Public License v3.0 6 votes vote down vote up
@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 4
Source File: BlockDoubleSlab.java    From Nukkit with GNU General Public License v3.0 6 votes vote down vote up
@Override
public BlockColor getColor() {
    switch (this.getDamage() & 0x07) {
        case BlockDoubleSlab.WOODEN:
            return BlockColor.WOOD_BLOCK_COLOR;
        default:
            case BlockDoubleSlab.COBBLESTONE:
            case BlockDoubleSlab.BRICK:
            case BlockDoubleSlab.STONE_BRICK:
            case BlockDoubleSlab.STONE:
                return BlockColor.STONE_BLOCK_COLOR;
        case BlockDoubleSlab.SANDSTONE:
            return BlockColor.SAND_BLOCK_COLOR;
        case BlockDoubleSlab.QUARTZ:
            return BlockColor.QUARTZ_BLOCK_COLOR;
        case BlockDoubleSlab.NETHER_BRICK:
            return BlockColor.NETHERRACK_BLOCK_COLOR;
    }
}
 
Example 5
Source File: BlockDoubleSlabStone.java    From Nukkit with GNU General Public License v3.0 6 votes vote down vote up
@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 6
Source File: BlockSlabStone.java    From Nukkit with GNU General Public License v3.0 6 votes vote down vote up
@Override
public BlockColor getColor() {
    switch (this.getDamage() & 0x07) {
        case NETHER_BRICK:
            return BlockColor.NETHERRACK_BLOCK_COLOR;
        default:
        case STONE:
        case COBBLESTONE:
        case BRICK:
        case STONE_BRICK:
            return BlockColor.STONE_BLOCK_COLOR;
        case SANDSTONE:
            return BlockColor.SAND_BLOCK_COLOR;
        case WOODEN:
            return BlockColor.WOOD_BLOCK_COLOR;
        case QUARTZ:
            return BlockColor.QUARTZ_BLOCK_COLOR;
    }
}
 
Example 7
Source File: BlockDoubleSlab.java    From Nukkit with GNU General Public License v3.0 6 votes vote down vote up
@Override
public BlockColor getColor() {
    switch (this.getDamage() & 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 8
Source File: BlockDoubleSlabStone.java    From Nukkit with GNU General Public License v3.0 6 votes vote down vote up
@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 9
Source File: BlockSlabStone.java    From Nukkit with GNU General Public License v3.0 6 votes vote down vote up
@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 10
Source File: BlockQuartz.java    From Jupiter with GNU General Public License v3.0 4 votes vote down vote up
@Override
public BlockColor getColor() {
    return BlockColor.QUARTZ_BLOCK_COLOR;
}
 
Example 11
Source File: BlockStairsQuartz.java    From Jupiter with GNU General Public License v3.0 4 votes vote down vote up
@Override
public BlockColor getColor() {
    return BlockColor.QUARTZ_BLOCK_COLOR;
}
 
Example 12
Source File: BlockQuartz.java    From Nukkit with GNU General Public License v3.0 4 votes vote down vote up
@Override
public BlockColor getColor() {
    return BlockColor.QUARTZ_BLOCK_COLOR;
}
 
Example 13
Source File: BlockStairsQuartz.java    From Nukkit with GNU General Public License v3.0 4 votes vote down vote up
@Override
public BlockColor getColor() {
    return BlockColor.QUARTZ_BLOCK_COLOR;
}
 
Example 14
Source File: BlockSeaLantern.java    From Nukkit with GNU General Public License v3.0 4 votes vote down vote up
@Override
public BlockColor getColor() {
    return BlockColor.QUARTZ_BLOCK_COLOR;
}
 
Example 15
Source File: BlockQuartz.java    From Nukkit with GNU General Public License v3.0 4 votes vote down vote up
@Override
public BlockColor getColor() {
    return BlockColor.QUARTZ_BLOCK_COLOR;
}
 
Example 16
Source File: BlockStairsQuartz.java    From Nukkit with GNU General Public License v3.0 4 votes vote down vote up
@Override
public BlockColor getColor() {
    return BlockColor.QUARTZ_BLOCK_COLOR;
}