Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package net.minecraft.src;
- import java.util.Random;
- // Referenced classes of package net.minecraft.src:
- // BlockBreakable, Material
- public class Blockbarbedwire extends BlockBreakable
- {
- public int getBlockTextureFromSide(int x)
- {
- if(x == 0)
- {
- return mod_bunkercraft.barbedwireBottom;
- }
- if(x == 1)
- {
- return mod_bunkercraft.barbedwireTop;
- }
- if(x == 3)
- {
- return mod_bunkercraft.barbedwireSide;
- }else
- return blockIndexInTexture;
- }
- public Blockbarbedwire(int i, int j, Material material, boolean flag)
- {
- super(i, j, material, flag);
- }
- public int quantityDropped(Random random)
- {
- return 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);
- }
- public void onEntityCollidedWithBlock(World world, int i, int j, int k, Entity entity)
- {
- entity.attackEntityFrom(DamageSource.cactus, 1);
- }
- public int getRenderBlockPass()
- {
- return 0;
- }
- }
Add Comment
Please, Sign In to add comment