mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
45 lines
966 B
Java
45 lines
966 B
Java
package com.hbm.blocks.network;
|
|
|
|
import com.hbm.blocks.ITooltipProvider;
|
|
import com.hbm.tileentity.network.TileEntityPylonBase;
|
|
|
|
import net.minecraft.block.Block;
|
|
import net.minecraft.block.BlockContainer;
|
|
import net.minecraft.block.material.Material;
|
|
import net.minecraft.tileentity.TileEntity;
|
|
import net.minecraft.world.World;
|
|
|
|
public abstract class PylonBase extends BlockContainer implements ITooltipProvider {
|
|
|
|
protected PylonBase(Material p_i45386_1_) {
|
|
super(p_i45386_1_);
|
|
}
|
|
|
|
@Override
|
|
public void breakBlock(World world, int x, int y, int z, Block b, int m) {
|
|
|
|
TileEntity te = world.getTileEntity(x, y, z);
|
|
|
|
if(te instanceof TileEntityPylonBase) {
|
|
((TileEntityPylonBase)te).disconnectAll();
|
|
}
|
|
|
|
super.breakBlock(world, x, y, z, b, m);
|
|
}
|
|
|
|
@Override
|
|
public int getRenderType(){
|
|
return -1;
|
|
}
|
|
|
|
@Override
|
|
public boolean isOpaqueCube() {
|
|
return false;
|
|
}
|
|
|
|
@Override
|
|
public boolean renderAsNormalBlock() {
|
|
return false;
|
|
}
|
|
}
|