Java Code Examples for net.minecraft.block.material.Material.cactus()

The following are Jave code examples for showing how to use cactus() of the net.minecraft.block.material.Material class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: DecompiledMinecraft   File: BlockCactus.java   Source Code and License Vote up 5 votes
protected BlockCactus()
{
    super(Material.cactus);
    this.setDefaultState(this.blockState.getBaseState().withProperty(AGE, Integer.valueOf(0)));
    this.setTickRandomly(true);
    this.setCreativeTab(CreativeTabs.tabDecorations);
}
 
Example 2
Project: DecompiledMinecraft   File: BlockCactus.java   Source Code and License Vote up 5 votes
protected BlockCactus()
{
    super(Material.cactus);
    this.setDefaultState(this.blockState.getBaseState().withProperty(AGE, Integer.valueOf(0)));
    this.setTickRandomly(true);
    this.setCreativeTab(CreativeTabs.tabDecorations);
}
 
Example 3
Project: BaseClient   File: BlockCactus.java   Source Code and License Vote up 5 votes
protected BlockCactus()
{
    super(Material.cactus);
    this.setDefaultState(this.blockState.getBaseState().withProperty(AGE, Integer.valueOf(0)));
    this.setTickRandomly(true);
    this.setCreativeTab(CreativeTabs.tabDecorations);
}
 
Example 4
Project: BaseClient   File: BlockCactus.java   Source Code and License Vote up 5 votes
protected BlockCactus()
{
    super(Material.cactus);
    this.setDefaultState(this.blockState.getBaseState().withProperty(AGE, Integer.valueOf(0)));
    this.setTickRandomly(true);
    this.setCreativeTab(CreativeTabs.tabDecorations);
}
 
Example 5
Project: DecompiledMinecraft   File: BlockContainer.java   Source Code and License Vote up 4 votes
protected boolean func_181086_a(World p_181086_1_, BlockPos p_181086_2_, EnumFacing p_181086_3_)
{
    return p_181086_1_.getBlockState(p_181086_2_.offset(p_181086_3_)).getBlock().getMaterial() == Material.cactus;
}
 
Example 6
Project: DecompiledMinecraft   File: BlockContainer.java   Source Code and License Vote up 4 votes
protected boolean func_181086_a(World p_181086_1_, BlockPos p_181086_2_, EnumFacing p_181086_3_)
{
    return p_181086_1_.getBlockState(p_181086_2_.offset(p_181086_3_)).getBlock().getMaterial() == Material.cactus;
}
 
Example 7
Project: BaseClient   File: BlockContainer.java   Source Code and License Vote up 4 votes
protected boolean func_181086_a(World p_181086_1_, BlockPos p_181086_2_, EnumFacing p_181086_3_)
{
    return p_181086_1_.getBlockState(p_181086_2_.offset(p_181086_3_)).getBlock().getMaterial() == Material.cactus;
}
 
Example 8
Project: BaseClient   File: BlockContainer.java   Source Code and License Vote up 4 votes
protected boolean func_181086_a(World p_181086_1_, BlockPos p_181086_2_, EnumFacing p_181086_3_)
{
    return p_181086_1_.getBlockState(p_181086_2_.offset(p_181086_3_)).getBlock().getMaterial() == Material.cactus;
}