Advertisement
SuperZanti

Untitled

May 29th, 2015
279
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. private float getBreakSpeed(EntityPlayer player, Block block, int metadata, float original, int x, int y, int z) {
  2. World world = player.worldObj;
  3. TileEntityCanvas tile = (TileEntityCanvas)world.getTileEntity(x, y, z);
  4. return tile != null ? tile.getPaintedBlockHardness() : 0F;
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement