Advertisement
Eragonn14900

Untitled

Dec 10th, 2016
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. /**
  2. * Determines the amount of enchanting power this block can provide to an enchanting table.
  3. * @param world The World
  4. * @param pos Block position in world
  5. * @return The amount of enchanting power this block produces.
  6. */
  7. public float getEnchantPowerBonus(World world, BlockPos pos)
  8. {
  9. return this == net.minecraft.init.Blocks.BOOKSHELF ? 1 : 0;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement