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