Examples of onNeighbourBlockChange()


Examples of pneumaticCraft.common.tileentity.TileEntityAirCannon.onNeighbourBlockChange()

    @Override
    public void onNeighborBlockChange(World world, int x, int y, int z, Block block){
        TileEntity te = world.getTileEntity(x, y, z);
        if(te instanceof TileEntityAirCannon) {
            TileEntityAirCannon teAc = (TileEntityAirCannon)te;
            teAc.onNeighbourBlockChange(x, y, z, block);
        }
    }

    @Override
    public boolean isRotatable(){
View Full Code Here

Examples of pneumaticCraft.common.tileentity.TileEntityAirCannon.onNeighbourBlockChange()

    public void onBlockPlacedBy(World par1World, int par2, int par3, int par4, EntityLivingBase par5EntityLiving, ItemStack par6ItemStack){
        super.onBlockPlacedBy(par1World, par2, par3, par4, par5EntityLiving, par6ItemStack);
        TileEntity te = par1World.getTileEntity(par2, par3, par4);
        if(te instanceof TileEntityAirCannon) {
            TileEntityAirCannon teAc = (TileEntityAirCannon)te;
            teAc.onNeighbourBlockChange(par2, par3, par4, this);
        }
    }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.