Interface AttributeProviderBlockEntity


public interface AttributeProviderBlockEntity
A BlockEntity that contains attributes.

Note that AttributeProvider is called before this, if the Block implements it. However if the Block doesn't actually add any objects of the correct type then this will still be called.

  • Method Summary

    Modifier and Type Method Description
    void addAllAttributes​(AttributeList<?> to)
    Adds every instance of the given attribute in this block entity to the resulting list.
  • Method Details

    • addAllAttributes

      void addAllAttributes​(AttributeList<?> to)
      Adds every instance of the given attribute in this block entity 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.