Package dan200.computercraft.api.media
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.
This interface is used to provide
IMedia
implementations for ItemStack
.- See Also:
-
Method Summary
-
Method Details
-
getMedia
Produce an IMedia implementation from an ItemStack.- Parameters:
stack
- The stack from which to extract the media information.- Returns:
- An
IMedia
implementation, ornull
if the item is not something you wish to handle - See Also:
-