You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.3 KiB
Java
38 lines
1.3 KiB
Java
package net.minecraft.block;
|
|
|
|
import cpw.mods.fml.relauncher.Side;
|
|
import cpw.mods.fml.relauncher.SideOnly;
|
|
import net.minecraft.block.material.Material;
|
|
import net.minecraft.world.IBlockAccess;
|
|
|
|
public class BlockLeavesBase extends Block
|
|
{
|
|
protected boolean field_150121_P;
|
|
private static final String __OBFID = "CL_00000326";
|
|
|
|
protected BlockLeavesBase(Material p_i45433_1_, boolean p_i45433_2_)
|
|
{
|
|
super(p_i45433_1_);
|
|
this.field_150121_P = p_i45433_2_;
|
|
}
|
|
|
|
/**
|
|
* Is this block (a) opaque and (b) a full 1m cube? This determines whether or not to render the shared face of two
|
|
* adjacent blocks and also whether the player can attach torches, redstone wire, etc to this block.
|
|
*/
|
|
public boolean isOpaqueCube()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
/**
|
|
* Returns true if the given side of this block type should be rendered, if the adjacent block is at the given
|
|
* coordinates. Args: blockAccess, x, y, z, side
|
|
*/
|
|
@SideOnly(Side.CLIENT)
|
|
public boolean shouldSideBeRendered(IBlockAccess worldIn, int x, int y, int z, int side)
|
|
{
|
|
Block block = worldIn.getBlock(x, y, z);
|
|
return !this.field_150121_P && block == this ? false : super.shouldSideBeRendered(worldIn, x, y, z, side);
|
|
}
|
|
} |