public interface IMedia
| Modifier and Type | Method and Description |
|---|---|
IMount |
createDataMount(net.minecraft.item.ItemStack stack,
net.minecraft.world.World world)
If this disk represents an item with data (like a floppy disk), get a mount representing it's contents.
|
net.minecraft.util.SoundEvent |
getAudio(net.minecraft.item.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(net.minecraft.item.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(net.minecraft.item.ItemStack stack)
Get a string representing the label of this item.
|
boolean |
setLabel(net.minecraft.item.ItemStack stack,
java.lang.String label)
Set a string representing the label of this item.
|
@Nullable
java.lang.String getLabel(@Nonnull
net.minecraft.item.ItemStack stack)
disk.getLabel() in lua.stack - The itemstack to inspect.boolean setLabel(@Nonnull
net.minecraft.item.ItemStack stack,
@Nullable
java.lang.String label)
disk.setLabel() in lua.stack - The itemstack to modify.label - The string to set the label to.@Nullable
java.lang.String getAudioTitle(@Nonnull
net.minecraft.item.ItemStack stack)
stack - The itemstack to inspect.@Nullable
net.minecraft.util.SoundEvent getAudio(@Nonnull
net.minecraft.item.ItemStack stack)
stack - The itemstack to inspect.@Nullable IMount createDataMount(@Nonnull net.minecraft.item.ItemStack stack, @Nonnull net.minecraft.world.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)