Interface MediaProvider

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface MediaProvider
This interface is used to provide IMedia implementations for ItemStack.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    getMedia(net.minecraft.world.item.ItemStack stack)
    Produce an IMedia implementation from an ItemStack.
  • Method Details

    • getMedia

      @Nullable IMedia getMedia(net.minecraft.world.item.ItemStack stack)
      Produce an IMedia implementation from an ItemStack.
      Parameters:
      stack - The stack from which to extract the media information.
      Returns:
      An IMedia implementation, or null if the item is not something you wish to handle
      See Also: