Guest User

Untitled

a guest
Jun 24th, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.59 KB | None | 0 0
  1. package net.minecraft.src;
  2.  
  3. import java.util.Random;
  4.  
  5. // Referenced classes of package net.minecraft.src:
  6. //            BlockBreakable, Material
  7.  
  8. public class Blockbarbedwire extends BlockBreakable
  9. {
  10.        public int getBlockTextureFromSide(int x)
  11.         {
  12.             if(x == 0)
  13.             {
  14.                     return mod_bunkercraft.barbedwireBottom;
  15.             }
  16.             if(x == 1)
  17.             {
  18.                     return mod_bunkercraft.barbedwireTop;
  19.             }
  20.             if(x == 3)
  21.             {
  22.                     return mod_bunkercraft.barbedwireSide;
  23.             }else
  24.                    
  25.                     return blockIndexInTexture;
  26.         }
  27.     public Blockbarbedwire(int i, int j, Material material, boolean flag)
  28.     {
  29.         super(i, j, material, flag);
  30.     }
  31.  
  32.     public int quantityDropped(Random random)
  33.     {
  34.         return 1;
  35.     }
  36.     public AxisAlignedBB getCollisionBoundingBoxFromPool(World world, int i, int j, int k)
  37.     {
  38.     float f = 0.0625F;
  39.     return AxisAlignedBB.getBoundingBoxFromPool((float)i + f, j, (float)k + f, (float)(i + 1) - f, (float)(j + 1) - f, (float)(k + 1) - f);
  40.     }
  41.  
  42.     public AxisAlignedBB getSelectedBoundingBoxFromPool(World world, int i, int j, int k)
  43.     {
  44.     float f = 0.0625F;
  45.     return AxisAlignedBB.getBoundingBoxFromPool((float)i + f, j, (float)k + f, (float)(i + 1) - f, j + 1, (float)(k + 1) - f);
  46.     }    
  47.     public void onEntityCollidedWithBlock(World world, int i, int j, int k, Entity entity)
  48.     {
  49.         entity.attackEntityFrom(DamageSource.cactus, 1);
  50.     }
  51.     public int getRenderBlockPass()
  52.     {
  53.         return 0;
  54.     }
  55. }
Add Comment
Please, Sign In to add comment