Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package net.minecraft.src;
- import java.util.Random;
- public class BlockUraniumBlock extends Block
- {
- protected BlockUraniumBlock(int i, int j)
- {
- super (i,j,Material.iron);
- }
- public int idDropped(int i, Random random)
- {
- return mod_SciFiCraft.uraniumBlock.blockID;
- }
- public int quantityDropped(Random random)
- {
- return 1;
- }
- public void onEntityCollidedWithBlock(World world, int i, int j, int k, Entity entity)
- {
- if (entity instanceof EntityLiving)
- {
- byte byte0 = 5;
- if(byte0 > 0)
- {
- ((EntityLiving)entity).addPotionEffect(new PotionEffect(Potion.potionPoison.id, byte0 * 20, 2));
- }
- entity.attackEntityFrom(DamageSource.cactus, 1);
- }
- }
- public AxisAlignedBB getCollisionBoundingBoxFromPool(World world, int i, int j, int k)
- {
- float f = 0.0625F;
- return AxisAlignedBB.getBoundingBoxFromPool((float)i + f, j, (float)k + f, (float)(i + 1) - f, (float)(j + 1) - f, (float)(k + 1) - f);
- }
- public AxisAlignedBB getSelectedBoundingBoxFromPool(World world, int i, int j, int k)
- {
- float f = 0.0625F;
- return AxisAlignedBB.getBoundingBoxFromPool((float)i + f, j, (float)k + f, (float)(i + 1) - f, j + 1, (float)(k + 1) - f);
- }
- }
Add Comment
Please, Sign In to add comment