Interface IToolRequirementProvider

All Known Implementing Classes:
HardLightBlock, LightCapacitorBlock, LightConduitBlock, SolidLightConduitBlock

public interface IToolRequirementProvider
An interface that requires blocks to return a list of their appropriate tags, intended for use in datagen.
  • Method Summary

    Modifier and Type
    Method
    Description
    Iterable<net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block>>
    Returns all tags that this block should be added to.
  • Method Details

    • getTagsForBlock

      Iterable<net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block>> getTagsForBlock()
      Returns all tags that this block should be added to. The tags must come from BlockTags. Reminder to self: Because it keeps eluding you, this is not a MC method. This is your method.
      Returns:
      A list of tags that this block must use.