2013-12-27 23:59:59 +01:00
|
|
|
package appeng.block.qnb;
|
|
|
|
|
|
|
|
import java.util.EnumSet;
|
|
|
|
|
|
|
|
import net.minecraft.block.material.Material;
|
2014-01-20 17:41:37 +01:00
|
|
|
import net.minecraft.world.World;
|
2013-12-27 23:59:59 +01:00
|
|
|
import appeng.block.AEBaseBlock;
|
|
|
|
import appeng.client.render.BaseBlockRender;
|
|
|
|
import appeng.client.render.blocks.RenderQNB;
|
|
|
|
import appeng.core.features.AEFeature;
|
|
|
|
import appeng.tile.qnb.TileQuantumBridge;
|
|
|
|
|
|
|
|
public class BlockQuantumRing extends AEBaseBlock
|
|
|
|
{
|
|
|
|
|
|
|
|
public BlockQuantumRing() {
|
|
|
|
super( BlockQuantumRing.class, Material.iron );
|
|
|
|
setfeature( EnumSet.of( AEFeature.QuantumNetworkBridge ) );
|
|
|
|
setTileEntiy( TileQuantumBridge.class );
|
|
|
|
float shave = 2.0f / 16.0f;
|
|
|
|
setBlockBounds( shave, shave, shave, 1.0f - shave, 1.0f - shave, 1.0f - shave );
|
|
|
|
setLightOpacity( 1 );
|
|
|
|
isFullSize = isOpaque = false;
|
|
|
|
}
|
|
|
|
|
2014-01-20 17:41:37 +01:00
|
|
|
@Override
|
|
|
|
public void onNeighborBlockChange(World w, int x, int y, int z, int pointlessnumber)
|
|
|
|
{
|
|
|
|
TileQuantumBridge bridge = getTileEntity( w, x, y, z );
|
|
|
|
if ( bridge != null )
|
|
|
|
bridge.neighborUpdate();
|
|
|
|
}
|
|
|
|
|
2013-12-27 23:59:59 +01:00
|
|
|
@Override
|
|
|
|
protected Class<? extends BaseBlockRender> getRenderer()
|
|
|
|
{
|
|
|
|
return RenderQNB.class;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|