2014-03-07 05:30:59 +01:00
|
|
|
package appeng.block.spatial;
|
2013-12-27 23:59:59 +01:00
|
|
|
|
2014-03-07 05:30:59 +01:00
|
|
|
import java.util.Arrays;
|
2013-12-27 23:59:59 +01:00
|
|
|
import java.util.EnumSet;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
import net.minecraft.block.material.Material;
|
2014-02-22 23:14:43 +01:00
|
|
|
import net.minecraft.client.renderer.texture.IIconRegister;
|
2013-12-27 23:59:59 +01:00
|
|
|
import net.minecraft.creativetab.CreativeTabs;
|
2014-03-07 05:30:59 +01:00
|
|
|
import net.minecraft.entity.Entity;
|
2014-02-09 02:34:52 +01:00
|
|
|
import net.minecraft.item.Item;
|
2014-03-07 05:30:59 +01:00
|
|
|
import net.minecraft.util.AxisAlignedBB;
|
2014-03-22 23:00:03 +01:00
|
|
|
import net.minecraft.world.IBlockAccess;
|
2014-03-07 05:30:59 +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.RenderNull;
|
|
|
|
import appeng.core.features.AEFeature;
|
2014-03-07 05:30:59 +01:00
|
|
|
import appeng.helpers.ICustomCollision;
|
2013-12-27 23:59:59 +01:00
|
|
|
|
2014-03-07 05:30:59 +01:00
|
|
|
public class BlockMatrixFrame extends AEBaseBlock implements ICustomCollision
|
2013-12-27 23:59:59 +01:00
|
|
|
{
|
|
|
|
|
|
|
|
public BlockMatrixFrame() {
|
2014-07-03 01:20:42 +02:00
|
|
|
super( BlockMatrixFrame.class, Material.anvil);
|
2013-12-27 23:59:59 +01:00
|
|
|
setfeature( EnumSet.of( AEFeature.SpatialIO ) );
|
|
|
|
setResistance( 6000000.0F );
|
|
|
|
setBlockUnbreakable();
|
|
|
|
setLightOpacity( 0 );
|
|
|
|
isOpaque = false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
protected Class<? extends BaseBlockRender> getRenderer()
|
|
|
|
{
|
|
|
|
return RenderNull.class;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2014-02-09 02:34:52 +01:00
|
|
|
public void getSubBlocks(Item id, CreativeTabs tab, List list)
|
2013-12-27 23:59:59 +01:00
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2014-02-22 23:14:43 +01:00
|
|
|
@Override
|
|
|
|
public void registerBlockIcons(IIconRegister iconRegistry)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2014-03-22 23:00:03 +01:00
|
|
|
@Override
|
|
|
|
public boolean canEntityDestroy(IBlockAccess world, int x, int y, int z, Entity entity)
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2014-03-07 05:30:59 +01:00
|
|
|
@Override
|
|
|
|
public Iterable<AxisAlignedBB> getSelectedBoundingBoxsFromPool(World w, int x, int y, int z, Entity e, boolean isVisual)
|
|
|
|
{
|
|
|
|
return Arrays.asList( new AxisAlignedBB[] {} );// AxisAlignedBB.getBoundingBox( 0.25, 0, 0.25, 0.75, 0.5, 0.75 )
|
|
|
|
// } );
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void addCollidingBlockToList(World w, int x, int y, int z, AxisAlignedBB bb, List out, Entity e)
|
|
|
|
{
|
2014-06-05 05:59:56 +02:00
|
|
|
out.add( AxisAlignedBB.getBoundingBox( 0.0, 0.0, 0.0, 1.0, 1.0, 1.0 ) );
|
2014-03-07 05:30:59 +01:00
|
|
|
}
|
|
|
|
|
2013-12-27 23:59:59 +01:00
|
|
|
}
|