Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package net.minecraft.src;
- import java.util.Random;
- public class BlockCobbleGlass extends BlockBreakable
- {
- public BlockCobbleGlass(int x, int y, Material material, boolean flag)
- {
- super(x, y, material, flag);
- }
- public int quantityDropped(Random random)
- {
- return 1; //return 0; if you want nothing to return when you break it
- }
- public int getRenderBlockPass()
- {
- return 0;
- }
- public int getBlockTextureFromSide(int x)
- {
- if(x == 0)
- return mod_GlassPass.InvisCobbleBottom;
- if(x == 1)
- return mod_GlassPass.InvisCobbleTop;
- if(x == 2)
- return mod_GlassPass.InvisCobbleSide;
- if(x == 3)
- return mod_GlassPass.InvisCobbleFront;
- if(x == 4)
- return mod_GlassPass.InvisCobbleSide;
- if(x == 5)
- return mod_GlassPass.InvisCobbleSide;
- return 0;
- }
- public void onBlockPlacedBy(World world, int i, int j, int k, EntityLiving entityliving)
- {
- int l = MathHelper.floor_double((double)((entityliving.rotationYaw * 4F) / 360F) + 2.5D) & 3;
- world.setBlockMetadataWithNotify(i, j, k, l);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment