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

The following examples show how to use cn.nukkit.utils.BlockColor#WOOD_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: 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 2
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 3
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 4
Source File: BlockPlanks.java    From Nukkit with GNU General Public License v3.0 6 votes vote down vote up
@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;
        case ACACIA:
            return BlockColor.ORANGE_BLOCK_COLOR;
        case DARK_OAK:
            return BlockColor.BROWN_BLOCK_COLOR;
    }
}
 
Example 5
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 6
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 7
Source File: BlockPressurePlateWood.java    From Nukkit with GNU General Public License v3.0 4 votes vote down vote up
@Override
public BlockColor getColor() {
    return BlockColor.WOOD_BLOCK_COLOR;
}
 
Example 8
Source File: BlockDaylightDetector.java    From Nukkit with GNU General Public License v3.0 4 votes vote down vote up
@Override
public BlockColor getColor() {
    return BlockColor.WOOD_BLOCK_COLOR;
}
 
Example 9
Source File: BlockDoorJungle.java    From Jupiter with GNU General Public License v3.0 4 votes vote down vote up
@Override
public BlockColor getColor(){
	return BlockColor.WOOD_BLOCK_COLOR;
}
 
Example 10
Source File: BlockNoteblock.java    From Nukkit with GNU General Public License v3.0 4 votes vote down vote up
@Override
public BlockColor getColor() {
    return BlockColor.WOOD_BLOCK_COLOR;
}
 
Example 11
Source File: BlockCraftingTable.java    From Nukkit with GNU General Public License v3.0 4 votes vote down vote up
@Override
public BlockColor getColor() {
    return BlockColor.WOOD_BLOCK_COLOR;
}
 
Example 12
Source File: BlockBookshelf.java    From Jupiter with GNU General Public License v3.0 4 votes vote down vote up
@Override
public BlockColor getColor() {
    return BlockColor.WOOD_BLOCK_COLOR;
}
 
Example 13
Source File: BlockDoorAcacia.java    From Jupiter with GNU General Public License v3.0 4 votes vote down vote up
@Override
public BlockColor getColor(){
	return BlockColor.WOOD_BLOCK_COLOR;
}
 
Example 14
Source File: BlockWood.java    From Nukkit with GNU General Public License v3.0 4 votes vote down vote up
@Override
public BlockColor getColor() {
    return BlockColor.WOOD_BLOCK_COLOR;
}
 
Example 15
Source File: BlockSlabWood.java    From Nukkit with GNU General Public License v3.0 4 votes vote down vote up
@Override
public BlockColor getColor() {
    return BlockColor.WOOD_BLOCK_COLOR;
}
 
Example 16
Source File: BlockTrapdoor.java    From Nukkit with GNU General Public License v3.0 4 votes vote down vote up
@Override
public BlockColor getColor() {
    return BlockColor.WOOD_BLOCK_COLOR;
}
 
Example 17
Source File: BlockChest.java    From Nukkit with GNU General Public License v3.0 4 votes vote down vote up
@Override
public BlockColor getColor() {
    return BlockColor.WOOD_BLOCK_COLOR;
}
 
Example 18
Source File: BlockDaylightDetector.java    From Jupiter with GNU General Public License v3.0 4 votes vote down vote up
@Override
public BlockColor getColor() {
    return BlockColor.WOOD_BLOCK_COLOR;
}
 
Example 19
Source File: BlockFenceGate.java    From Nukkit with GNU General Public License v3.0 4 votes vote down vote up
@Override
public BlockColor getColor() {
    return BlockColor.WOOD_BLOCK_COLOR;
}
 
Example 20
Source File: BlockFence.java    From Jupiter with GNU General Public License v3.0 4 votes vote down vote up
@Override
public BlockColor getColor() {
    return BlockColor.WOOD_BLOCK_COLOR;
}