Class OreBlock

All Implemented Interfaces:
IItemProvider, IForgeBlock, IForgeRegistryEntry<Block>

public class OreBlock extends Block
  • Constructor Details

  • Method Details

    • xpOnDrop

      protected int xpOnDrop(Random p_220281_1_)
    • spawnAfterBreak

      public void spawnAfterBreak(BlockState p_220062_1_, ServerWorld p_220062_2_, BlockPos p_220062_3_, ItemStack p_220062_4_)
      Overrides:
      spawnAfterBreak in class AbstractBlock
    • getExpDrop

      public int getExpDrop(BlockState state, IWorldReader reader, BlockPos pos, int fortune, int silktouch)
      Description copied from interface: IForgeBlock
      Gathers how much experience this block drops when broken.
      Parameters:
      state - The current state
      reader - The world
      pos - Block position
      Returns:
      Amount of XP from breaking this block.