forked from khmMinecraftProjects/UseLessMod
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBlockTransparente.java
More file actions
42 lines (34 loc) · 974 Bytes
/
Copy pathBlockTransparente.java
File metadata and controls
42 lines (34 loc) · 974 Bytes
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
package UselessMod.Blocks;
import UselessMod.Configuracion.Datos;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.world.World;
public class BlockTransparente extends Block {
public BlockTransparente(int par1)
{
super(par1, Material.piston);
this.setCreativeTab(Datos.tabMod);
this.setBlockBounds(0F, 0F, 0F, 0F, 0F, 0F);
}
public boolean isOpaqueCube(){
return false;
}
@Override
public boolean isCollidable(){
return false;
}
public boolean renderAsNormalBlock()
{
return false;
}
public AxisAlignedBB getCollisionBoundingBoxFromPool(World par1World, int par2, int par3, int par4)
{
return null;
}
public boolean isBlockReplaceable(World world, int x, int y, int z)
{
return true;
}
}