Interface IBlockRarityProvider


public interface IBlockRarityProvider
Implement this interface at blocks to make them show rarity colors in item mode.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.item.Rarity
    getRarity(net.minecraft.world.item.ItemStack itemStack)
     
  • Method Details

    • getRarity

      net.minecraft.world.item.Rarity getRarity(net.minecraft.world.item.ItemStack itemStack)
      Parameters:
      itemStack - The itemstack with this blockState.
      Returns:
      The rarity for this blockState.