Java Code Examples for net.minecraft.init.Blocks#STAINED_HARDENED_CLAY

The following examples show how to use net.minecraft.init.Blocks#STAINED_HARDENED_CLAY . These examples are extracted from open source projects. 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 want to check out the right sidebar which shows the related API usage.
Example 1
Source Project: TofuCraftReload   File: MapGenTofuCaves.java    License: MIT License 6 votes vote down vote up
protected boolean canReplaceBlock(IBlockState p_175793_1_, IBlockState p_175793_2_) {
    if (p_175793_1_.getBlock() == Blocks.STONE) {
        return true;
    } else if (p_175793_1_.getBlock() == Blocks.DIRT) {
        return true;
    } else if (p_175793_1_.getBlock() == Blocks.GRASS) {
        return true;
    } else if (p_175793_1_.getBlock() == Blocks.HARDENED_CLAY) {
        return true;
    } else if (p_175793_1_.getBlock() == Blocks.STAINED_HARDENED_CLAY) {
        return true;
    } else if (p_175793_1_.getBlock() == Blocks.SANDSTONE) {
        return true;
    } else if (p_175793_1_.getBlock() == Blocks.RED_SANDSTONE) {
        return true;
    } else if (p_175793_1_.getBlock() == Blocks.MYCELIUM) {
        return true;
    } else if (p_175793_1_.getBlock() == Blocks.SNOW_LAYER) {
        return true;
    } else {
        return (/*p_175793_1_.getBlock() == TcBlocks.tofuMinced || */p_175793_1_.getBlock() == Blocks.GRAVEL)
                && p_175793_2_.getMaterial() != Material.WATER;

    }
}
 
Example 2
public boolean canSustainBush(IBlockState state) {
    return state.getBlock() == getBlock("red_rock") || state.getBlock() == Blocks.SAND || state.getBlock() == Blocks.HARDENED_CLAY || state.getBlock() == Blocks.STAINED_HARDENED_CLAY;
}
 
Example 3
public boolean canSustainBush(IBlockState state) {
    return state.getBlock() == getBlock("red_rock") || state.getBlock() == Blocks.SAND || state.getBlock() == Blocks.HARDENED_CLAY || state.getBlock() == Blocks.STAINED_HARDENED_CLAY;
}