-
Notifications
You must be signed in to change notification settings - Fork 753
/
AntiLight.java
74 lines (62 loc) · 1.72 KB
/
AntiLight.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
package tconstruct.blocks;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.world.Explosion;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
public class AntiLight extends Block
{
public AntiLight(int id)
{
super(id, Material.air);
float f = 0.0F;
float f1 = 0.0F;
this.setBlockBounds(0.0F + f1, 0.0F + f, 0.0F + f1, 1.0F + f1, 1.0F + f, 1.0F + f1);
}
@Override
public int getLightOpacity (World world, int x, int y, int z)
{
return world.getBlockMetadata(x, y, z);
}
@Override
public boolean isAirBlock (World world, int x, int y, int z)
{
return true;
}
@Override
public boolean renderAsNormalBlock ()
{
return false;
}
@Override
public boolean isOpaqueCube ()
{
return false;
}
@Override
@SideOnly(Side.CLIENT)
public void registerIcons (IconRegister par1IconRegister)
{
this.blockIcon = par1IconRegister.registerIcon("tinker:blank");
}
@Override
public AxisAlignedBB getCollisionBoundingBoxFromPool (World world, int x, int y, int z)
{
return null;
}
public boolean canCollideCheck (int par1, boolean par2)
{
return false;
}
public boolean shouldSideBeRendered (IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
{
return false;
}
public void onBlockExploded (World world, int x, int y, int z, Explosion explosion)
{
}
}