@FunctionalInterface
public interface IMediaProvider
IMedia
implementations for ItemStack
.Modifier and Type | Method and Description |
---|---|
IMedia |
getMedia(ItemStack stack)
Produce an IMedia implementation from an ItemStack.
|
IMedia getMedia(ItemStack stack)
stack
- The stack from which to extract the media information.ComputerCraftAPI.registerMediaProvider(IMediaProvider)