Class OreBlock

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

public class OreBlock extends Block
  • Field Details

  • Constructor Details

  • Method Details

    • spawnAfterBreak

      public void spawnAfterBreak(BlockState p_55142_, ServerLevel p_55143_, BlockPos p_55144_, ItemStack p_55145_)
      Overrides:
      spawnAfterBreak in class BlockBehaviour
    • getExpDrop

      public int getExpDrop(BlockState state, LevelReader 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 level
      pos - Block position
      fortune - fortune enchantment level of tool being used
      silktouch - silk touch enchantment level of tool being used
      Returns:
      Amount of XP from breaking this block.