Interface AttributeProvider


public interface AttributeProvider
A Block that contains attributes.
  • Method Summary

    Modifier and Type Method Description
    void addAllAttributes​(net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState state, AttributeList<?> to)
    Adds every instance of the given attribute in this block to the resulting list.
  • Method Details

    • addAllAttributes

      void addAllAttributes​(net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState state, AttributeList<?> to)
      Adds every instance of the given attribute in this block to the resulting list. Note that this must never add wrapped versions of an attribute to the resulting list as the caller is responsible for doing that instead.