Java Code Examples for net.minecraft.init.Blocks.CHORUS_FLOWER

The following are Jave code examples for showing how to use CHORUS_FLOWER of the net.minecraft.init.Blocks class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: Backmemed   File: BlockChorusPlant.java   View Source Code Vote up 4 votes
public boolean shouldSideBeRendered(IBlockState blockState, IBlockAccess blockAccess, BlockPos pos, EnumFacing side)
{
    Block block = blockAccess.getBlockState(pos.offset(side)).getBlock();
    return block != this && block != Blocks.CHORUS_FLOWER && (side != EnumFacing.DOWN || block != Blocks.END_STONE);
}
 
Example 2
Project: CustomWorldGen   File: BlockChorusPlant.java   View Source Code Vote up 4 votes
@SideOnly(Side.CLIENT)
public boolean shouldSideBeRendered(IBlockState blockState, IBlockAccess blockAccess, BlockPos pos, EnumFacing side)
{
    Block block = blockAccess.getBlockState(pos.offset(side)).getBlock();
    return block != this && block != Blocks.CHORUS_FLOWER && (side != EnumFacing.DOWN || block != Blocks.END_STONE);
}