public interface IMedia
Modifier and Type | Method and Description |
---|---|
IMount |
createDataMount(ItemStack stack,
World world)
If this disk represents an item with data (like a floppy disk), get a mount representing it's contents.
|
SoundEvent |
getAudio(ItemStack stack)
If this disk represents an item with audio (like a record), get the resource name of the audio track to play.
|
java.lang.String |
getAudioTitle(ItemStack stack)
If this disk represents an item with audio (like a record), get the readable name of the audio track.
|
java.lang.String |
getLabel(ItemStack stack)
Get a string representing the label of this item.
|
boolean |
setLabel(ItemStack stack,
java.lang.String label)
Set a string representing the label of this item.
|
java.lang.String getLabel(ItemStack stack)
disk.getLabel()
in lua.stack
- The itemstack to inspect.boolean setLabel(ItemStack stack, java.lang.String label)
disk.setLabel()
in lua.stack
- The itemstack to modify.label
- The string to set the label to.java.lang.String getAudioTitle(ItemStack stack)
stack
- The itemstack to inspect.SoundEvent getAudio(ItemStack stack)
stack
- The itemstack to inspect.IMount createDataMount(ItemStack stack, World world)
stack
- The itemstack to inspect.world
- The world in which the item and disk drive reside.IWritableMount
, it will mounted using mountWritable()IMount
,
IWritableMount
,
ComputerCraftAPI.createSaveDirMount(World, String, long)
,
ComputerCraftAPI.createResourceMount(Class, String, String)