Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- AbstractPocketUpgrade - Class in dan200.computercraft.api.pocket
-
A base class for
IPocketUpgrade
s. - AbstractPocketUpgrade(ResourceLocation, String, ItemStack) - Constructor for class dan200.computercraft.api.pocket.AbstractPocketUpgrade
- AbstractPocketUpgrade(ResourceLocation, ItemStack) - Constructor for class dan200.computercraft.api.pocket.AbstractPocketUpgrade
- AbstractTurtleUpgrade - Class in dan200.computercraft.api.turtle
-
A base class for
ITurtleUpgrade
s. - AbstractTurtleUpgrade(ResourceLocation, TurtleUpgradeType, String, ItemStack) - Constructor for class dan200.computercraft.api.turtle.AbstractTurtleUpgrade
- AbstractTurtleUpgrade(ResourceLocation, TurtleUpgradeType, ItemStack) - Constructor for class dan200.computercraft.api.turtle.AbstractTurtleUpgrade
- ACCESS_DENIED - Static variable in class dan200.computercraft.api.filesystem.MountConstants
-
The error message used when attempting to modify a read-only file or mount.
- add(IComputerAccess) - Method in class dan200.computercraft.api.peripheral.AttachedComputerSet
-
Add a computer to this collection of computers.
- add(Consumer<UpgradeDataProvider.Upgrade<TurtleUpgradeSerialiser<?>>>) - Method in class dan200.computercraft.api.turtle.TurtleUpgradeDataProvider.ToolBuilder
-
Register this as an upgrade.
- add(Consumer<UpgradeDataProvider.Upgrade<R>>) - Method in record class dan200.computercraft.api.upgrades.UpgradeDataProvider.Upgrade
-
Convenience method for registering an upgrade.
- addFuel(int) - Method in interface dan200.computercraft.api.turtle.ITurtleAccess
-
Increase the turtle's fuel level by the given amount.
- addProvider(DetailProvider<? super T>) - Method in interface dan200.computercraft.api.detail.DetailRegistry
-
Registers a detail provider.
- addReceiver(PacketReceiver) - Method in interface dan200.computercraft.api.network.PacketNetwork
-
Add a receiver to the network.
- addUpgrades(Consumer<UpgradeDataProvider.Upgrade<R>>) - Method in class dan200.computercraft.api.upgrades.UpgradeDataProvider
-
Add all turtle or pocket computer upgrades.
- adjective(String) - Method in class dan200.computercraft.api.turtle.TurtleUpgradeDataProvider.ToolBuilder
-
Specify a custom adjective for this tool.
- adjustError(int) - Method in class dan200.computercraft.api.lua.MethodResult
-
Increase the Lua error by a specific amount.
- ADMIN_COMPUTER - Static variable in class dan200.computercraft.api.component.ComputerComponents
-
This component is only present on "command computers", and other computers with admin capabilities.
- AdminComputer - Interface in dan200.computercraft.api.component
-
A computer which has permission to perform administrative/op commands, such as the command computer.
- allowEnchantments() - Method in class dan200.computercraft.api.turtle.TurtleUpgradeDataProvider.ToolBuilder
-
Indicate that this upgrade allows items which have been enchanted or have custom attribute modifiers.
- ALWAYS - Enum constant in enum class dan200.computercraft.api.turtle.TurtleToolDurability
-
The equipped tool always consumes durability when using.
- APPEND_OPTIONS - Static variable in class dan200.computercraft.api.filesystem.MountConstants
- attach(IComputerAccess) - Method in interface dan200.computercraft.api.peripheral.IPeripheral
-
Is called when a computer is attaching to the peripheral.
- AttachedComputerSet - Class in dan200.computercraft.api.peripheral
-
A thread-safe collection of computers.
- AttachedComputerSet() - Constructor for class dan200.computercraft.api.peripheral.AttachedComputerSet
- ATTACK - Enum constant in enum class dan200.computercraft.api.turtle.TurtleVerb
-
The turtle called
turtle.attack()
,turtle.attackUp()
orturtle.attackDown()
.
B
- badArgument(int, String, String) - Static method in class dan200.computercraft.api.lua.LuaValues
-
Construct a "bad argument" exception, from an expected and actual type.
- badArgumentOf(IArguments, int, String) - Static method in class dan200.computercraft.api.lua.LuaValues
-
Construct a "bad argument" exception, from an
IArguments
argument and an expected type. - badField(String, String, String) - Static method in class dan200.computercraft.api.lua.LuaValues
-
Construct a field exception, from an expected and actual type.
- badTableItem(int, String, String) - Static method in class dan200.computercraft.api.lua.LuaValues
-
Construct a table item exception, from an expected and actual type.
- BasicItemDetailProvider<T> - Class in dan200.computercraft.api.detail
-
An item detail provider for
ItemStack
s whoseItem
has a specific type. - BasicItemDetailProvider(String, Class<T>) - Constructor for class dan200.computercraft.api.detail.BasicItemDetailProvider
-
Create a new item detail provider.
- BasicItemDetailProvider(Class<T>) - Constructor for class dan200.computercraft.api.detail.BasicItemDetailProvider
-
Create a new item detail provider.
- BLOCK_IN_WORLD - Static variable in class dan200.computercraft.api.detail.VanillaDetailRegistries
-
Provides details for
BlockReference
, a reference to aBlock
in the world. - blockEntity() - Method in record class dan200.computercraft.api.detail.BlockReference
-
Returns the value of the
blockEntity
record component. - BlockReference - Record Class in dan200.computercraft.api.detail
-
A reference to a block in the world, used by block detail providers.
- BlockReference(Level, BlockPos) - Constructor for record class dan200.computercraft.api.detail.BlockReference
- BlockReference(Level, BlockPos, BlockState, BlockEntity) - Constructor for record class dan200.computercraft.api.detail.BlockReference
-
Creates an instance of a
BlockReference
record class. - Blocks() - Constructor for class dan200.computercraft.api.ComputerCraftTags.Blocks
- BOTH - Enum constant in enum class dan200.computercraft.api.turtle.TurtleUpgradeType
-
An upgrade which provides both a tool and a peripheral.
- breakable(TagKey<Block>) - Method in class dan200.computercraft.api.turtle.TurtleUpgradeDataProvider.ToolBuilder
-
Provide a list of breakable blocks.
- BundledRedstoneProvider - Interface in dan200.computercraft.api.redstone
-
This interface is used to provide bundled redstone output for blocks.
C
- call(IArguments) - Method in interface dan200.computercraft.api.lua.ILuaFunction
-
Call this function with a series of arguments.
- callMethod(ILuaContext, int, IArguments) - Method in interface dan200.computercraft.api.lua.IDynamicLuaObject
-
Called when a user calls one of the methods that this object implements.
- callMethod(IComputerAccess, ILuaContext, int, IArguments) - Method in interface dan200.computercraft.api.peripheral.IDynamicPeripheral
-
This is called when a lua program on an attached computer calls
peripheral.call()
with one of the methods exposed byIDynamicPeripheral.getMethodNames()
. - CANNOT_WRITE_TO_DIRECTORY - Static variable in class dan200.computercraft.api.filesystem.MountConstants
-
The error message used when trying to opening a directory to read.
- canWork() - Method in interface dan200.computercraft.api.peripheral.WorkMonitor
-
If the owning computer is currently allowed to execute work.
- channel() - Method in record class dan200.computercraft.api.network.Packet
-
Returns the value of the
channel
record component. - checkEnum(int, Class<T>, String) - Static method in class dan200.computercraft.api.lua.LuaValues
-
Ensure a string is a valid enum value.
- checkFinite(int, double) - Static method in class dan200.computercraft.api.lua.LuaValues
-
Ensure a numeric argument is finite (i.e.
- checkFiniteNum(int, Number) - Static method in class dan200.computercraft.api.lua.LuaValues
-
Ensure a numeric argument is finite (i.e.
- clear() - Method in interface dan200.computercraft.api.lua.LuaTable
- CODEC - Static variable in enum class dan200.computercraft.api.turtle.TurtleToolDurability
-
The codec which may be used for serialising/deserialising
TurtleToolDurability
s. - Coerced<T> - Record Class in dan200.computercraft.api.lua
-
A wrapper type for "coerced" values.
- Coerced(T) - Constructor for record class dan200.computercraft.api.lua.Coerced
-
Creates an instance of a
Coerced
record class. - COMPUTER - Static variable in class dan200.computercraft.api.ComputerCraftTags.Blocks
- COMPUTER - Static variable in class dan200.computercraft.api.ComputerCraftTags.Items
- ComputerComponent<T> - Class in dan200.computercraft.api.component
-
A component attached to a computer.
- ComputerComponents - Class in dan200.computercraft.api.component
-
The
ComputerComponent
s provided by ComputerCraft. - ComputerComponents() - Constructor for class dan200.computercraft.api.component.ComputerComponents
- ComputerCraftAPI - Class in dan200.computercraft.api
-
The static entry point to the ComputerCraft API.
- ComputerCraftAPI() - Constructor for class dan200.computercraft.api.ComputerCraftAPI
- ComputerCraftAPIClient - Class in dan200.computercraft.api.client
-
The public API for client-only code.
- ComputerCraftTags - Class in dan200.computercraft.api
-
Tags provided by ComputerCraft.
- ComputerCraftTags() - Constructor for class dan200.computercraft.api.ComputerCraftTags
- ComputerCraftTags.Blocks - Class in dan200.computercraft.api
- ComputerCraftTags.Items - Class in dan200.computercraft.api
- connect(WiredNode, WiredNode) - Method in interface dan200.computercraft.api.network.wired.WiredNetwork
-
Deprecated.
- connectTo(WiredNode) - Method in interface dan200.computercraft.api.network.wired.WiredNode
-
Create a connection from this node to another.
- consumeDurability(TurtleToolDurability) - Method in class dan200.computercraft.api.turtle.TurtleUpgradeDataProvider.ToolBuilder
-
Set when the tool will consume durability.
- consumeFuel(int) - Method in interface dan200.computercraft.api.turtle.ITurtleAccess
-
Removes some fuel from the turtles fuel supply.
- containsKey(Object) - Method in class dan200.computercraft.api.lua.ObjectLuaTable
- containsValue(Object) - Method in class dan200.computercraft.api.lua.ObjectLuaTable
- copy() - Method in record class dan200.computercraft.api.upgrades.UpgradeData
-
Take a copy of this
UpgradeData
. - copyOf(UpgradeData<T>) - Static method in record class dan200.computercraft.api.upgrades.UpgradeData
-
Take a copy of a (possibly
null
)UpgradeData
instance. - count() - Method in interface dan200.computercraft.api.lua.IArguments
-
Get the number of arguments passed to this function.
- count() - Method in class dan200.computercraft.api.lua.ObjectArguments
- craftingItem(Item) - Method in class dan200.computercraft.api.turtle.TurtleUpgradeDataProvider.ToolBuilder
-
Specify a custom item which is used to craft this upgrade.
- create(IComputerSystem) - Method in interface dan200.computercraft.api.lua.ILuaAPIFactory
-
Create a new API instance for a given computer.
- create(String, String) - Static method in class dan200.computercraft.api.component.ComputerComponent
-
Create a new computer component.
- createDataMount(ItemStack, ServerLevel) - Method in interface dan200.computercraft.api.media.IMedia
-
If this disk represents an item with data (like a floppy disk), get a mount representing it's contents.
- createPeripheral(IPocketAccess) - Method in interface dan200.computercraft.api.pocket.IPocketUpgrade
-
Creates a peripheral for the pocket computer.
- createPeripheral(ITurtleAccess, TurtleSide) - Method in interface dan200.computercraft.api.turtle.ITurtleUpgrade
-
Will only be called for peripheral upgrades.
- createResourceMount(MinecraftServer, String, String) - Static method in class dan200.computercraft.api.ComputerCraftAPI
-
Creates a file system mount to a resource folder, and returns it.
- createSaveDirMount(MinecraftServer, String, long) - Static method in class dan200.computercraft.api.ComputerCraftAPI
-
Creates a file system mount that maps to a subfolder of the save directory for a given world, and returns it.
- createUniqueNumberedSaveDir(MinecraftServer, String) - Static method in class dan200.computercraft.api.ComputerCraftAPI
-
Creates a numbered directory in a subfolder of the save directory for a given world, and returns that number.
- createWiredNodeForElement(WiredElement) - Static method in class dan200.computercraft.api.ComputerCraftAPI
-
Construct a new wired node for a given wired element.
- creationTime() - Method in record class dan200.computercraft.api.filesystem.FileAttributes
-
Returns the value of the
creationTime
record component.
D
- damageMultiplier(float) - Method in class dan200.computercraft.api.turtle.TurtleUpgradeDataProvider.ToolBuilder
-
The amount of damage a swing of this tool will do.
- dan200.computercraft.api - package dan200.computercraft.api
-
ComputerCraft's public API.
- dan200.computercraft.api.client - package dan200.computercraft.api.client
- dan200.computercraft.api.client.turtle - package dan200.computercraft.api.client.turtle
- dan200.computercraft.api.component - package dan200.computercraft.api.component
- dan200.computercraft.api.detail - package dan200.computercraft.api.detail
-
The detail system provides a standard way for mods to return descriptions of common game objects, such as blocks or items, as well as registering additional detail to be included in those descriptions.
- dan200.computercraft.api.filesystem - package dan200.computercraft.api.filesystem
- dan200.computercraft.api.lua - package dan200.computercraft.api.lua
- dan200.computercraft.api.media - package dan200.computercraft.api.media
- dan200.computercraft.api.network - package dan200.computercraft.api.network
- dan200.computercraft.api.network.wired - package dan200.computercraft.api.network.wired
- dan200.computercraft.api.peripheral - package dan200.computercraft.api.peripheral
-
Peripherals for blocks and upgrades.
- dan200.computercraft.api.pocket - package dan200.computercraft.api.pocket
- dan200.computercraft.api.redstone - package dan200.computercraft.api.redstone
- dan200.computercraft.api.turtle - package dan200.computercraft.api.turtle
- dan200.computercraft.api.upgrades - package dan200.computercraft.api.upgrades
- data() - Method in record class dan200.computercraft.api.upgrades.UpgradeData
-
Returns the value of the
data
record component. - delete(String) - Method in interface dan200.computercraft.api.filesystem.WritableMount
-
Deletes a directory at a given path inside the virtual file system.
- detach(IComputerAccess) - Method in interface dan200.computercraft.api.peripheral.IPeripheral
-
Called when a computer is detaching from the peripheral.
- DetailProvider<T> - Interface in dan200.computercraft.api.detail
-
Provide details about a block, fluid, or item.
- DetailRegistry<T> - Interface in dan200.computercraft.api.detail
-
A registry which provides computer-visible detail about in-game objects such as blocks, items or fluids.
- DIG - Enum constant in enum class dan200.computercraft.api.turtle.TurtleVerb
-
The turtle called
turtle.dig()
,turtle.digUp()
orturtle.digDown()
. - disconnect(WiredNode, WiredNode) - Method in interface dan200.computercraft.api.network.wired.WiredNetwork
-
Deprecated.
- disconnectFrom(WiredNode) - Method in interface dan200.computercraft.api.network.wired.WiredNode
-
Destroy a connection between this node and another.
- drop(int) - Method in interface dan200.computercraft.api.lua.IArguments
-
Drop a number of arguments.
- drop(int) - Method in class dan200.computercraft.api.lua.ObjectArguments
E
- encode(String) - Static method in class dan200.computercraft.api.lua.LuaValues
-
Encode a Lua string into a read-only
ByteBuffer
. - entrySet() - Method in class dan200.computercraft.api.lua.ObjectLuaTable
- EPOCH - Static variable in class dan200.computercraft.api.filesystem.MountConstants
-
A
FileTime
set to the Unix EPOCH, intended forBasicFileAttributes
's file times. - equals(IPeripheral) - Method in interface dan200.computercraft.api.peripheral.IPeripheral
-
Determine whether this peripheral is equivalent to another one.
- equals(Object) - Method in record class dan200.computercraft.api.detail.BlockReference
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class dan200.computercraft.api.filesystem.FileAttributes
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class dan200.computercraft.api.lua.Coerced
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class dan200.computercraft.api.network.Packet
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class dan200.computercraft.api.upgrades.UpgradeData
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class dan200.computercraft.api.upgrades.UpgradeDataProvider.Upgrade
-
Indicates whether some other object is "equal to" this one.
- escapes() - Method in interface dan200.computercraft.api.lua.IArguments
-
Create a version of these arguments which escapes the scope of the current function call.
- execute() - Method in interface dan200.computercraft.api.lua.LuaTask
-
Execute this task.
- execute(ITurtleAccess) - Method in interface dan200.computercraft.api.turtle.TurtleCommand
-
Will be called by the turtle on the main thread when it is time to execute the custom command.
- executeCommand(TurtleCommand) - Method in interface dan200.computercraft.api.turtle.ITurtleAccess
-
Adds a custom command to the turtles command queue.
- executeMainThreadTask(LuaTask) - Method in interface dan200.computercraft.api.lua.ILuaContext
-
Queue a task to be executed on the main server thread at the beginning of next tick, waiting for it to complete.
- existingSerialiser(ResourceLocation) - Method in class dan200.computercraft.api.upgrades.UpgradeDataProvider
- exists(String) - Method in interface dan200.computercraft.api.filesystem.Mount
-
Returns whether a file with a given path exists or not.
F
- failure() - Static method in class dan200.computercraft.api.turtle.TurtleCommandResult
-
Create a failed command result with no error message.
- failure(String) - Static method in class dan200.computercraft.api.turtle.TurtleCommandResult
-
Create a failed command result with an error message.
- FILE_EXISTS - Static variable in class dan200.computercraft.api.filesystem.MountConstants
-
The error message used when trying to overwrite a file (for instance when renaming files or creating directories).
- FileAttributes - Record Class in dan200.computercraft.api.filesystem
-
A simple version of
BasicFileAttributes
, which provides what information aMount
already exposes. - FileAttributes(boolean, long) - Constructor for record class dan200.computercraft.api.filesystem.FileAttributes
-
Create a new
FileAttributes
instance with the creation time and last modified time set to the Unix epoch. - FileAttributes(boolean, long, FileTime, FileTime) - Constructor for record class dan200.computercraft.api.filesystem.FileAttributes
-
Creates an instance of a
FileAttributes
record class. - fileKey() - Method in record class dan200.computercraft.api.filesystem.FileAttributes
- FileOperationException - Exception in dan200.computercraft.api.filesystem
-
An
IOException
which occurred on a specific file. - FileOperationException(String, String) - Constructor for exception dan200.computercraft.api.filesystem.FileOperationException
- FileOperationException(String) - Constructor for exception dan200.computercraft.api.filesystem.FileOperationException
- flatItem() - Static method in interface dan200.computercraft.api.client.turtle.TurtleUpgradeModeller
-
A basic
TurtleUpgradeModeller
which renders using the upgrade's UpgradeBase.getUpgradeItem(CompoundTag) upgrade item}. - forEach(Consumer<? super IComputerAccess>) - Method in class dan200.computercraft.api.peripheral.AttachedComputerSet
-
Apply an action to each computer in this collection.
- fromJson(ResourceLocation, JsonObject) - Method in interface dan200.computercraft.api.upgrades.UpgradeSerialiser
-
Read this upgrade from a JSON file in a datapack.
- fromNetwork(ResourceLocation, FriendlyByteBuf) - Method in interface dan200.computercraft.api.upgrades.UpgradeSerialiser
-
Read this upgrade from a network packet, sent from the server.
G
- GenericPeripheral - Interface in dan200.computercraft.api.peripheral
-
A
GenericSource
which provides methods for a peripheral. - GenericSource - Interface in dan200.computercraft.api.lua
-
A generic source of
LuaFunction
functions. - get(int) - Method in interface dan200.computercraft.api.lua.IArguments
-
Get the argument at the specific index.
- get(int) - Method in class dan200.computercraft.api.lua.ObjectArguments
- get(Object) - Method in class dan200.computercraft.api.lua.ObjectLuaTable
- get(ItemStack) - Static method in interface dan200.computercraft.api.media.PrintoutContents
-
Get the printout contents for a particular stack.
- getAdditionalTypes() - Method in interface dan200.computercraft.api.peripheral.IPeripheral
-
Return additional types/traits associated with this object.
- getAdditionalTypes() - Method in class dan200.computercraft.api.peripheral.PeripheralType
-
Get any additional types or "traits" of this peripheral.
- getAll() - Method in interface dan200.computercraft.api.lua.IArguments
-
Get an array containing all as
Object
s. - getAll() - Method in class dan200.computercraft.api.lua.ObjectArguments
- getAttachmentName() - Method in interface dan200.computercraft.api.peripheral.IComputerAccess
-
Get a string, unique to the computer, by which the computer refers to this peripheral.
- getAttributes(String) - Method in interface dan200.computercraft.api.filesystem.Mount
-
Get attributes about the given file.
- getAudio(ItemStack) - Method in interface dan200.computercraft.api.media.IMedia
-
If this disk represents an item with audio (like a record), get the resource name of the audio track to play.
- getAudioTitle(ItemStack) - Method in interface dan200.computercraft.api.media.IMedia
-
If this disk represents an item with audio (like a record), get the readable name of the audio track.
- getAvailablePeripheral(String) - Method in interface dan200.computercraft.api.peripheral.IComputerAccess
-
Get a reachable peripheral with the given attachment name.
- getAvailablePeripherals() - Method in interface dan200.computercraft.api.peripheral.IComputerAccess
-
Get a set of peripherals that this computer access can "see", along with their attachment name.
- getBasicDetails(T) - Method in interface dan200.computercraft.api.detail.DetailRegistry
-
Compute basic details about an object.
- getBoolean(int) - Method in interface dan200.computercraft.api.lua.IArguments
-
Get an argument as a boolean.
- getBoolean(int) - Method in interface dan200.computercraft.api.lua.LuaTable
-
Get an array entry as a boolean.
- getBoolean(String) - Method in interface dan200.computercraft.api.lua.LuaTable
-
Get a table entry as a boolean.
- getBundledRedstoneOutput(Level, BlockPos, Direction) - Static method in class dan200.computercraft.api.ComputerCraftAPI
-
If there is a Computer or Turtle at a certain position in the world, get it's bundled redstone output.
- getBundledRedstoneOutput(Level, BlockPos, Direction) - Method in interface dan200.computercraft.api.redstone.BundledRedstoneProvider
-
Produce an bundled redstone output from a block location.
- getBytes(int) - Method in interface dan200.computercraft.api.lua.IArguments
-
Get a string argument as a byte array.
- getBytesCoerced(int) - Method in interface dan200.computercraft.api.lua.IArguments
-
Get the argument, converting it to the raw-byte representation of its string by following Lua conventions.
- getCallback() - Method in class dan200.computercraft.api.lua.MethodResult
- getCapacity() - Method in interface dan200.computercraft.api.filesystem.WritableMount
-
Get the capacity of this mount.
- getColour() - Method in interface dan200.computercraft.api.pocket.IPocketAccess
-
Get the colour of this pocket computer as a RGB number.
- getColour() - Method in interface dan200.computercraft.api.turtle.ITurtleAccess
-
Get the colour of this turtle as a RGB number.
- getComponent(ComputerComponent<T>) - Method in interface dan200.computercraft.api.lua.IComputerSystem
-
Get a component attached to this computer.
- getCraftingItem() - Method in class dan200.computercraft.api.pocket.AbstractPocketUpgrade
- getCraftingItem() - Method in class dan200.computercraft.api.turtle.AbstractTurtleUpgrade
- getCraftingItem() - Method in interface dan200.computercraft.api.upgrades.UpgradeBase
-
Return an item stack representing the type of item that a computer must be crafted with to create a version which holds this upgrade.
- getDefaultAdjective(ResourceLocation) - Static method in interface dan200.computercraft.api.upgrades.UpgradeBase
-
Get a suitable default unlocalised adjective for an upgrade ID.
- getDependencies() - Method in interface dan200.computercraft.api.client.turtle.TurtleUpgradeModeller
-
Get a list of models that this turtle modeller depends on.
- getDetails(T) - Method in interface dan200.computercraft.api.detail.DetailRegistry
-
Compute all details about an object, using
DetailRegistry.getBasicDetails(Object)
and any registered providers. - getDirection() - Method in interface dan200.computercraft.api.turtle.ITurtleAccess
-
Returns the world direction the turtle is currently facing.
- getDouble(int) - Method in interface dan200.computercraft.api.lua.IArguments
-
Get an argument as a double.
- getDouble(int) - Method in interface dan200.computercraft.api.lua.LuaTable
-
Get an array entry as a double.
- getDouble(String) - Method in interface dan200.computercraft.api.lua.LuaTable
-
Get a table entry as a double.
- getElement() - Method in interface dan200.computercraft.api.network.wired.WiredNode
-
The associated element for this network node.
- getEntity() - Method in interface dan200.computercraft.api.pocket.IPocketAccess
-
Gets the entity holding this item.
- getEnum(int, Class<T>) - Method in interface dan200.computercraft.api.lua.IArguments
-
Get a string argument as an enum value.
- getErrorAdjust() - Method in class dan200.computercraft.api.lua.MethodResult
- getErrorMessage() - Method in class dan200.computercraft.api.turtle.TurtleCommandResult
-
Get the error message of this command result.
- getFilename() - Method in exception dan200.computercraft.api.filesystem.FileOperationException
- getFiniteDouble(int) - Method in interface dan200.computercraft.api.lua.IArguments
-
Get an argument as a finite number (not infinite or NaN).
- getFiniteDouble(int) - Method in interface dan200.computercraft.api.lua.LuaTable
-
Get an argument as a finite number (not infinite or NaN).
- getFiniteDouble(String) - Method in interface dan200.computercraft.api.lua.LuaTable
-
Get an argument as a finite number (not infinite or NaN).
- getFuelLevel() - Method in interface dan200.computercraft.api.turtle.ITurtleAccess
-
Get the current fuel level of this turtle.
- getFuelLimit() - Method in interface dan200.computercraft.api.turtle.ITurtleAccess
-
Get the maximum amount of fuel a turtle can hold.
- getGeneratedUpgrades() - Method in class dan200.computercraft.api.upgrades.UpgradeDataProvider
- getID() - Method in interface dan200.computercraft.api.peripheral.IComputerAccess
-
Returns the numerical ID of this computer.
- getInstalledVersion() - Static method in class dan200.computercraft.api.ComputerCraftAPI
- getInt(int) - Method in interface dan200.computercraft.api.lua.IArguments
-
Get an argument as an integer.
- getInt(int) - Method in interface dan200.computercraft.api.lua.LuaTable
-
Get an array entry as an integer.
- getInt(String) - Method in interface dan200.computercraft.api.lua.LuaTable
-
Get a table entry as an integer.
- getInventory() - Method in interface dan200.computercraft.api.turtle.ITurtleAccess
-
Get the inventory of this turtle.
- getLabel() - Method in interface dan200.computercraft.api.lua.IComputerSystem
-
Get the label for this computer.
- getLabel(ItemStack) - Method in interface dan200.computercraft.api.media.IMedia
-
Get a string representing the label of this item.
- getLevel() - Method in interface dan200.computercraft.api.lua.IComputerSystem
-
Get the level this computer is currently in.
- getLevel() - Method in exception dan200.computercraft.api.lua.LuaException
-
The level this error is raised at.
- getLevel() - Method in interface dan200.computercraft.api.network.PacketReceiver
-
Get the world in which this packet receiver exists.
- getLevel() - Method in interface dan200.computercraft.api.network.PacketSender
-
Get the world in which this packet sender exists.
- getLevel() - Method in interface dan200.computercraft.api.pocket.IPocketAccess
-
Get the level in which the pocket computer exists.
- getLevel() - Method in interface dan200.computercraft.api.turtle.ITurtleAccess
-
Returns the world in which the turtle resides.
- getLight() - Method in interface dan200.computercraft.api.pocket.IPocketAccess
-
Get the colour of this pocket computer's light as a RGB number.
- getLong(int) - Method in interface dan200.computercraft.api.lua.IArguments
-
Get an argument as a long.
- getLong(int) - Method in interface dan200.computercraft.api.lua.LuaTable
-
Get an array entry as an integer.
- getLong(String) - Method in interface dan200.computercraft.api.lua.LuaTable
-
Get a table entry as an integer.
- getMainThreadMonitor() - Method in interface dan200.computercraft.api.peripheral.IComputerAccess
-
Get a
WorkMonitor
for tasks your peripheral might execute on the main (server) thread. - getMatrix() - Method in class dan200.computercraft.api.client.TransformedModel
- getMedia(ItemStack) - Method in interface dan200.computercraft.api.media.MediaProvider
-
Produce an IMedia implementation from an ItemStack.
- getMethodNames() - Method in interface dan200.computercraft.api.lua.IDynamicLuaObject
-
Get the names of the methods that this object implements.
- getMethodNames() - Method in interface dan200.computercraft.api.peripheral.IDynamicPeripheral
-
Should return an array of strings that identify the methods that this peripheral exposes to Lua.
- getModel() - Method in class dan200.computercraft.api.client.TransformedModel
- getModel(T, ITurtleAccess, TurtleSide) - Method in interface dan200.computercraft.api.client.turtle.TurtleUpgradeModeller
-
Obtain the model to be used when rendering a turtle peripheral.
- getModel(T, CompoundTag, TurtleSide) - Method in interface dan200.computercraft.api.client.turtle.TurtleUpgradeModeller
-
Obtain the model to be used when rendering a turtle peripheral.
- getModuleName() - Method in interface dan200.computercraft.api.lua.ILuaAPI
-
Get the module name this API should be available as.
- getName() - Method in class dan200.computercraft.api.upgrades.UpgradeDataProvider
- getNames() - Method in interface dan200.computercraft.api.lua.ILuaAPI
-
Get the globals this API will be assigned to.
- getNetwork() - Method in interface dan200.computercraft.api.network.wired.WiredNode
-
Deprecated.Use the connect/disconnect/remove methods on
WiredNode
. - getNode() - Method in interface dan200.computercraft.api.network.wired.WiredSender
-
The node in the network representing this object.
- getNumericType(double) - Static method in class dan200.computercraft.api.lua.LuaValues
-
Returns a more detailed representation of this number's type.
- getOwningPlayer() - Method in interface dan200.computercraft.api.turtle.ITurtleAccess
-
Get the player who owns this turtle, namely whoever placed it.
- getPeripheral(TurtleSide) - Method in interface dan200.computercraft.api.turtle.ITurtleAccess
-
Returns the peripheral created by the upgrade on the specified side of the turtle, if there is one.
- getPersistedData(CompoundTag) - Method in interface dan200.computercraft.api.turtle.ITurtleUpgrade
-
Get upgrade data that should be persisted when the turtle was broken.
- getPosition() - Method in interface dan200.computercraft.api.lua.IComputerSystem
-
Get the position this computer is currently at.
- getPosition() - Method in interface dan200.computercraft.api.network.PacketReceiver
-
Get the position in the world at which this receiver exists.
- getPosition() - Method in interface dan200.computercraft.api.network.PacketSender
-
Get the position in the world at which this sender exists.
- getPosition() - Method in interface dan200.computercraft.api.pocket.IPocketAccess
-
Get the position of the pocket computer.
- getPosition() - Method in interface dan200.computercraft.api.turtle.ITurtleAccess
-
Returns a vector containing the integer co-ordinates at which the turtle resides.
- getPrimaryType() - Method in class dan200.computercraft.api.peripheral.PeripheralType
-
Get the name of this peripheral type.
- getRange() - Method in interface dan200.computercraft.api.network.PacketReceiver
-
Get the maximum distance this receiver can send and receive messages.
- getRemainingSpace() - Method in interface dan200.computercraft.api.filesystem.WritableMount
-
Get the amount of free space on the mount, in bytes.
- getResult() - Method in class dan200.computercraft.api.lua.MethodResult
- getResults() - Method in class dan200.computercraft.api.turtle.TurtleCommandResult
-
Get the resulting values of this command result.
- getSelectedSlot() - Method in interface dan200.computercraft.api.turtle.ITurtleAccess
-
Get the currently selected slot in the turtle's inventory.
- getSenderID() - Method in interface dan200.computercraft.api.network.PacketSender
-
Get some sort of identification string for this sender.
- getSerializedName() - Method in enum class dan200.computercraft.api.turtle.TurtleToolDurability
- getSize(String) - Method in interface dan200.computercraft.api.filesystem.Mount
-
Returns the size of a file with a given path, in bytes.
- getString(int) - Method in interface dan200.computercraft.api.lua.IArguments
-
Get an argument as a string.
- getString(int) - Method in interface dan200.computercraft.api.lua.LuaTable
-
Get an array entry as a string.
- getString(String) - Method in interface dan200.computercraft.api.lua.LuaTable
-
Get a table entry as a string.
- getStringCoerced(int) - Method in interface dan200.computercraft.api.lua.IArguments
-
Get the argument, converting it to a string by following Lua conventions.
- getTable(int) - Method in interface dan200.computercraft.api.lua.IArguments
-
Get an argument as a table.
- getTable(int) - Method in interface dan200.computercraft.api.lua.LuaTable
-
Get an array entry as a table.
- getTable(String) - Method in interface dan200.computercraft.api.lua.LuaTable
-
Get a table entry as a table.
- getTableUnsafe(int) - Method in interface dan200.computercraft.api.lua.IArguments
-
Get an argument as a table in an unsafe manner.
- getTarget() - Method in interface dan200.computercraft.api.peripheral.IPeripheral
-
Get the object that this peripheral provides methods for.
- getTextLines() - Method in interface dan200.computercraft.api.media.PrintoutContents
-
Get the text contents of this printout, as a sequence of lines.
- getTitle() - Method in interface dan200.computercraft.api.media.PrintoutContents
-
Get the (possibly empty) title for this printout.
- getType() - Method in interface dan200.computercraft.api.peripheral.GenericPeripheral
-
Get the type of the exposed peripheral.
- getType() - Method in interface dan200.computercraft.api.peripheral.IPeripheral
-
Should return a string that uniquely identifies this type of peripheral.
- getType() - Method in class dan200.computercraft.api.turtle.AbstractTurtleUpgrade
- getType() - Method in interface dan200.computercraft.api.turtle.ITurtleUpgrade
-
Return whether this turtle adds a tool or a peripheral to the turtle.
- getType(int) - Method in interface dan200.computercraft.api.lua.IArguments
-
Get the type name of the argument at the specific index.
- getType(int) - Method in class dan200.computercraft.api.lua.ObjectArguments
- getType(Object) - Static method in class dan200.computercraft.api.lua.LuaValues
-
Get a string representation of the given value's type.
- getUnlocalisedAdjective() - Method in class dan200.computercraft.api.pocket.AbstractPocketUpgrade
- getUnlocalisedAdjective() - Method in class dan200.computercraft.api.turtle.AbstractTurtleUpgrade
- getUnlocalisedAdjective() - Method in interface dan200.computercraft.api.upgrades.UpgradeBase
-
Return an unlocalised string to describe this type of computer in item names.
- getUpgrade() - Method in interface dan200.computercraft.api.pocket.IPocketAccess
-
Get the currently equipped upgrade.
- getUpgrade(TurtleSide) - Method in interface dan200.computercraft.api.turtle.ITurtleAccess
-
Returns the upgrade on the specified side of the turtle, if there is one.
- getUpgradeData(ItemStack) - Method in interface dan200.computercraft.api.upgrades.UpgradeBase
-
Extract upgrade data from an
ItemStack
. - getUpgradeID() - Method in class dan200.computercraft.api.pocket.AbstractPocketUpgrade
- getUpgradeID() - Method in class dan200.computercraft.api.turtle.AbstractTurtleUpgrade
- getUpgradeID() - Method in interface dan200.computercraft.api.upgrades.UpgradeBase
-
Gets a unique identifier representing this type of turtle upgrade.
- getUpgradeItem() - Method in record class dan200.computercraft.api.upgrades.UpgradeData
-
Get the upgrade item for this upgrade.
- getUpgradeItem(CompoundTag) - Method in interface dan200.computercraft.api.upgrades.UpgradeBase
-
Returns the item stack representing a currently equipped turtle upgrade.
- getUpgradeNBTData() - Method in interface dan200.computercraft.api.pocket.IPocketAccess
-
Get the upgrade-specific NBT.
- getUpgradeNBTData(TurtleSide) - Method in interface dan200.computercraft.api.turtle.ITurtleAccess
-
Get an upgrade-specific NBT compound, which can be used to store arbitrary data.
- getUpgrades() - Method in interface dan200.computercraft.api.pocket.IPocketAccess
-
Deprecated, for removal: This API element is subject to removal in a future version.This is a relic of a previous API, which no longer makes sense with newer versions of ComputerCraft.
- getUpgradeWithData(TurtleSide) - Method in interface dan200.computercraft.api.turtle.ITurtleAccess
-
Returns the upgrade on the specified side of the turtle, along with its update data.
- getWirelessNetwork(MinecraftServer) - Static method in class dan200.computercraft.api.ComputerCraftAPI
-
Attempt to get the game-wide wireless network.
H
- hasComputers() - Method in class dan200.computercraft.api.peripheral.AttachedComputerSet
-
Determine if this collection contains any computers.
- hashCode() - Method in record class dan200.computercraft.api.detail.BlockReference
-
Returns a hash code value for this object.
- hashCode() - Method in record class dan200.computercraft.api.filesystem.FileAttributes
-
Returns a hash code value for this object.
- hashCode() - Method in record class dan200.computercraft.api.lua.Coerced
-
Returns a hash code value for this object.
- hashCode() - Method in record class dan200.computercraft.api.network.Packet
-
Returns a hash code value for this object.
- hashCode() - Method in record class dan200.computercraft.api.upgrades.UpgradeData
-
Returns a hash code value for this object.
- hashCode() - Method in record class dan200.computercraft.api.upgrades.UpgradeDataProvider.Upgrade
-
Returns a hash code value for this object.
- hasLevel() - Method in exception dan200.computercraft.api.lua.LuaException
-
Whether a level was explicitly specified when constructing.
I
- IArguments - Interface in dan200.computercraft.api.lua
-
The arguments passed to a function.
- IComputerAccess - Interface in dan200.computercraft.api.peripheral
-
The interface passed to peripherals by computers or turtles, providing methods that they can call.
- IComputerSystem - Interface in dan200.computercraft.api.lua
-
An interface passed to
ILuaAPIFactory
in order to provide additional information about a computer. - id() - Method in interface dan200.computercraft.api.lua.GenericSource
-
A unique identifier for this generic source.
- id() - Method in record class dan200.computercraft.api.upgrades.UpgradeDataProvider.Upgrade
-
Returns the value of the
id
record component. - IDynamicLuaObject - Interface in dan200.computercraft.api.lua
-
An interface for representing custom objects returned by peripherals or other Lua objects.
- IDynamicPeripheral - Interface in dan200.computercraft.api.peripheral
-
A peripheral whose methods are not known at runtime.
- ILuaAPI - Interface in dan200.computercraft.api.lua
-
Represents a Lua object which is stored as a global variable on computer startup.
- ILuaAPIFactory - Interface in dan200.computercraft.api.lua
-
Construct an
ILuaAPI
for a computer. - ILuaCallback - Interface in dan200.computercraft.api.lua
-
A continuation which is called when this coroutine is resumed.
- ILuaContext - Interface in dan200.computercraft.api.lua
-
An interface passed to peripherals and
IDynamicLuaObject
s by computers or turtles, providing methods that allow the peripheral call to interface with the computer. - ILuaFunction - Interface in dan200.computercraft.api.lua
-
A function, which can be called from Lua.
- IMedia - Interface in dan200.computercraft.api.media
-
Represents an item that can be placed in a disk drive and used by a Computer.
- invalidatePeripheral() - Method in interface dan200.computercraft.api.pocket.IPocketAccess
-
Remove the current peripheral and create a new one.
- IPeripheral - Interface in dan200.computercraft.api.peripheral
-
A peripheral is an external device that a computer can interact with.
- IPocketAccess - Interface in dan200.computercraft.api.pocket
-
Wrapper class for pocket computers.
- IPocketUpgrade - Interface in dan200.computercraft.api.pocket
-
A peripheral which can be equipped to the back side of a pocket computer.
- isDirectory() - Method in record class dan200.computercraft.api.filesystem.FileAttributes
-
Returns the value of the
isDirectory
record component. - isDirectory(String) - Method in interface dan200.computercraft.api.filesystem.Mount
-
Returns whether a file with a given path is a directory or not.
- isEmpty() - Method in class dan200.computercraft.api.lua.ObjectLuaTable
- isFuelNeeded() - Method in interface dan200.computercraft.api.turtle.ITurtleAccess
-
Determine whether this turtle will require fuel when performing actions.
- isInterdimensional() - Method in interface dan200.computercraft.api.network.PacketReceiver
-
Determine whether this receiver can receive packets from other dimensions.
- isItemSuitable(ItemStack) - Method in interface dan200.computercraft.api.upgrades.UpgradeBase
-
Determine if an item is suitable for being used for this upgrade.
- isOther() - Method in record class dan200.computercraft.api.filesystem.FileAttributes
- isPeripheral() - Method in enum class dan200.computercraft.api.turtle.TurtleUpgradeType
- isReadOnly(String) - Method in interface dan200.computercraft.api.filesystem.WritableMount
-
Returns whether a file with a given path is read-only or not.
- isRegularFile() - Method in record class dan200.computercraft.api.filesystem.FileAttributes
- isRemoved() - Method in interface dan200.computercraft.api.turtle.ITurtleAccess
-
Determine if this turtle has been removed.
- isSuccess() - Method in class dan200.computercraft.api.turtle.TurtleCommandResult
-
Determine whether the command executed successfully.
- issueMainThreadTask(LuaTask) - Method in interface dan200.computercraft.api.lua.ILuaContext
-
Queue a task to be executed on the main server thread at the beginning of next tick, but do not wait for it to complete.
- isSymbolicLink() - Method in record class dan200.computercraft.api.filesystem.FileAttributes
- isTool() - Method in enum class dan200.computercraft.api.turtle.TurtleUpgradeType
- isWireless() - Method in interface dan200.computercraft.api.network.PacketNetwork
-
Determine whether this network is wireless.
- ITEM_STACK - Static variable in class dan200.computercraft.api.detail.VanillaDetailRegistries
-
Provides details for
ItemStack
s. - Items() - Constructor for class dan200.computercraft.api.ComputerCraftTags.Items
- ITurtleAccess - Interface in dan200.computercraft.api.turtle
-
The interface passed to turtle by turtles, providing methods that they can call.
- ITurtleUpgrade - Interface in dan200.computercraft.api.turtle
-
The primary interface for defining an update for Turtles.
K
- keySet() - Method in class dan200.computercraft.api.lua.ObjectLuaTable
L
- lastAccessTime() - Method in record class dan200.computercraft.api.filesystem.FileAttributes
- lastModifiedTime() - Method in record class dan200.computercraft.api.filesystem.FileAttributes
-
Returns the value of the
lastModifiedTime
record component. - LEFT - Enum constant in enum class dan200.computercraft.api.turtle.TurtleSide
-
The turtle's left side (where the pickaxe usually is on a Wireless Mining Turtle).
- length() - Method in interface dan200.computercraft.api.lua.LuaTable
-
Compute the length of the array part of this table.
- level() - Method in record class dan200.computercraft.api.detail.BlockReference
-
Returns the value of the
level
record component. - list(String, List<String>) - Method in interface dan200.computercraft.api.filesystem.Mount
-
Returns the file names of all the files in a directory.
- LuaException - Exception in dan200.computercraft.api.lua
-
An exception representing an error in Lua, like that raised by the
error()
function. - LuaException(String) - Constructor for exception dan200.computercraft.api.lua.LuaException
- LuaException(String, int) - Constructor for exception dan200.computercraft.api.lua.LuaException
- LuaFunction - Annotation Interface in dan200.computercraft.api.lua
-
Used to mark a Java function which is callable from Lua.
- LuaTable<K,
V> - Interface in dan200.computercraft.api.lua -
A view of a Lua table.
- LuaTask - Interface in dan200.computercraft.api.lua
-
A task which can be executed via
ILuaContext.issueMainThreadTask(LuaTask)
This will be run on the main thread, at the beginning of the next tick. - LuaValues - Class in dan200.computercraft.api.lua
-
Various utility functions for operating with Lua values.
M
- mainThread() - Element in annotation interface dan200.computercraft.api.lua.LuaFunction
-
Run this function on the main server thread.
- makeDirectory(String) - Method in interface dan200.computercraft.api.filesystem.WritableMount
-
Creates a directory at a given path inside the virtual file system.
- MediaProvider - Interface in dan200.computercraft.api.media
-
This interface is used to provide
IMedia
implementations forItemStack
. - MethodResult - Class in dan200.computercraft.api.lua
-
The result of invoking a Lua method.
- MINIMUM_FILE_SIZE - Static variable in class dan200.computercraft.api.filesystem.MountConstants
-
The minimum size of a file for file capacity calculations.
- MOD_ID - Static variable in class dan200.computercraft.api.ComputerCraftAPI
- MONITOR - Static variable in class dan200.computercraft.api.ComputerCraftTags.Blocks
- MONITOR - Static variable in class dan200.computercraft.api.ComputerCraftTags.Items
- mount(String, Mount) - Method in interface dan200.computercraft.api.peripheral.IComputerAccess
-
Mount a mount onto the computer's file system in a read only mode.
- mount(String, Mount, String) - Method in interface dan200.computercraft.api.peripheral.IComputerAccess
-
Mount a mount onto the computer's file system in a read only mode.
- Mount - Interface in dan200.computercraft.api.filesystem
-
Represents a read only part of a virtual filesystem that can be mounted onto a computer using
IComputerAccess.mount(String, Mount)
. - MountConstants - Class in dan200.computercraft.api.filesystem
-
Useful constants functions for working with mounts.
- mountWritable(String, WritableMount) - Method in interface dan200.computercraft.api.peripheral.IComputerAccess
-
Mount a mount onto the computer's file system in a writable mode.
- mountWritable(String, WritableMount, String) - Method in interface dan200.computercraft.api.peripheral.IComputerAccess
-
Mount a mount onto the computer's file system in a writable mode.
- MOVE_BACK - Enum constant in enum class dan200.computercraft.api.turtle.TurtleAnimation
-
Make the turtle move backwards.
- MOVE_DOWN - Enum constant in enum class dan200.computercraft.api.turtle.TurtleAnimation
-
Make the turtle move backwards.
- MOVE_FORWARD - Enum constant in enum class dan200.computercraft.api.turtle.TurtleAnimation
-
Make the turtle move forward.
- MOVE_UP - Enum constant in enum class dan200.computercraft.api.turtle.TurtleAnimation
-
Make the turtle move backwards.
N
- networkChanged(WiredNetworkChange) - Method in interface dan200.computercraft.api.network.wired.WiredElement
-
Called when peripherals on the network change.
- NEVER - Enum constant in enum class dan200.computercraft.api.turtle.TurtleToolDurability
-
The equipped tool never consumes durability.
- NO_SUCH_FILE - Static variable in class dan200.computercraft.api.filesystem.MountConstants
-
The error message used when the file does not exist.
- NONE - Enum constant in enum class dan200.computercraft.api.turtle.TurtleAnimation
-
An animation which does nothing.
- NOT_A_DIRECTORY - Static variable in class dan200.computercraft.api.filesystem.MountConstants
-
The error message used when trying to use a file as a directory (for instance when listing its contents).
- NOT_A_FILE - Static variable in class dan200.computercraft.api.filesystem.MountConstants
-
The error message used when trying to use a directory as a file (for instance when opening for reading).
- NotAttachedException - Exception in dan200.computercraft.api.peripheral
-
Thrown when performing operations on
IComputerAccess
when the current peripheral is no longer attached to the computer. - NotAttachedException() - Constructor for exception dan200.computercraft.api.peripheral.NotAttachedException
- NotAttachedException(String) - Constructor for exception dan200.computercraft.api.peripheral.NotAttachedException
O
- ObjectArguments - Class in dan200.computercraft.api.lua
-
An implementation of
IArguments
which wraps an array ofObject
. - ObjectArguments(IArguments) - Constructor for class dan200.computercraft.api.lua.ObjectArguments
-
Deprecated.
- ObjectArguments(Object...) - Constructor for class dan200.computercraft.api.lua.ObjectArguments
- ObjectArguments(List<Object>) - Constructor for class dan200.computercraft.api.lua.ObjectArguments
- ObjectLuaTable - Class in dan200.computercraft.api.lua
- ObjectLuaTable(Map<?, ?>) - Constructor for class dan200.computercraft.api.lua.ObjectLuaTable
- of() - Static method in class dan200.computercraft.api.lua.MethodResult
-
Return no values immediately.
- of(Object) - Static method in class dan200.computercraft.api.lua.MethodResult
-
Return a single value immediately.
- of(Object...) - Static method in class dan200.computercraft.api.lua.MethodResult
-
Return any number of values immediately.
- of(ModelResourceLocation) - Static method in class dan200.computercraft.api.client.TransformedModel
- of(ResourceLocation) - Static method in class dan200.computercraft.api.client.TransformedModel
- of(ItemStack, Transformation) - Static method in class dan200.computercraft.api.client.TransformedModel
- of(T, CompoundTag) - Static method in record class dan200.computercraft.api.upgrades.UpgradeData
-
A utility method to construct a new
UpgradeData
instance. - ofAdditional(String...) - Static method in class dan200.computercraft.api.peripheral.PeripheralType
-
Create a new peripheral type with no primary type but additional traits.
- ofAdditional(Collection<String>) - Static method in class dan200.computercraft.api.peripheral.PeripheralType
-
Create a new peripheral type with no primary type but additional traits.
- ofDefault(T) - Static method in record class dan200.computercraft.api.upgrades.UpgradeData
-
Create an
UpgradeData
containing the default data for an upgrade. - ofType(String) - Static method in class dan200.computercraft.api.peripheral.PeripheralType
-
Create a new non-empty peripheral type.
- ofType(String, String...) - Static method in class dan200.computercraft.api.peripheral.PeripheralType
-
Create a new non-empty peripheral type with additional traits.
- ofType(String, Collection<String>) - Static method in class dan200.computercraft.api.peripheral.PeripheralType
-
Create a new non-empty peripheral type with additional traits.
- onRightClick(Level, IPocketAccess, IPeripheral) - Method in interface dan200.computercraft.api.pocket.IPocketUpgrade
-
Called when the pocket computer is right clicked.
- openFile(String, Set<OpenOption>) - Method in interface dan200.computercraft.api.filesystem.WritableMount
-
Opens a file with a given path, and returns an
SeekableByteChannel
. - openForAppend(String) - Method in interface dan200.computercraft.api.filesystem.WritableMount
-
Deprecated, for removal: This API element is subject to removal in a future version.Replaced with more the generic
openFile(String, Set)
. - openForRead(String) - Method in interface dan200.computercraft.api.filesystem.Mount
-
Opens a file with a given path, and returns a
SeekableByteChannel
representing its contents. - openForWrite(String) - Method in interface dan200.computercraft.api.filesystem.WritableMount
-
Deprecated, for removal: This API element is subject to removal in a future version.Replaced with more the generic
openFile(String, Set)
. - optBoolean(int) - Method in interface dan200.computercraft.api.lua.IArguments
-
Get an argument as a boolean.
- optBoolean(int) - Method in interface dan200.computercraft.api.lua.LuaTable
-
Get an array entry as a boolean.
- optBoolean(int, boolean) - Method in interface dan200.computercraft.api.lua.IArguments
-
Get an argument as a boolean.
- optBoolean(String) - Method in interface dan200.computercraft.api.lua.LuaTable
-
Get a table entry as a boolean.
- optBytes(int) - Method in interface dan200.computercraft.api.lua.IArguments
-
Get a string argument as a byte array.
- optDouble(int) - Method in interface dan200.computercraft.api.lua.IArguments
-
Get an argument as a double.
- optDouble(int) - Method in interface dan200.computercraft.api.lua.LuaTable
-
Get an array entry as a double.
- optDouble(int, double) - Method in interface dan200.computercraft.api.lua.IArguments
-
Get an argument as a double.
- optDouble(String) - Method in interface dan200.computercraft.api.lua.LuaTable
-
Get a table entry as a double.
- optEnum(int, Class<T>) - Method in interface dan200.computercraft.api.lua.IArguments
-
Get a string argument as an enum value.
- optFiniteDouble(int) - Method in interface dan200.computercraft.api.lua.IArguments
-
Get an argument as a finite number (not infinite or NaN).
- optFiniteDouble(int) - Method in interface dan200.computercraft.api.lua.LuaTable
-
Get an argument as a finite number (not infinite or NaN).
- optFiniteDouble(int, double) - Method in interface dan200.computercraft.api.lua.IArguments
-
Get an argument as a finite number (not infinite or NaN).
- optFiniteDouble(String) - Method in interface dan200.computercraft.api.lua.LuaTable
-
Get an argument as a finite number (not infinite or NaN).
- optInt(int) - Method in interface dan200.computercraft.api.lua.IArguments
-
Get an argument as an int.
- optInt(int) - Method in interface dan200.computercraft.api.lua.LuaTable
-
Get an array entry as an integer.
- optInt(int, int) - Method in interface dan200.computercraft.api.lua.IArguments
-
Get an argument as an int.
- optInt(String) - Method in interface dan200.computercraft.api.lua.LuaTable
-
Get a table entry as an integer.
- optLong(int) - Method in interface dan200.computercraft.api.lua.IArguments
-
Get an argument as a long.
- optLong(int) - Method in interface dan200.computercraft.api.lua.LuaTable
-
Get an array entry as an integer.
- optLong(int, long) - Method in interface dan200.computercraft.api.lua.IArguments
-
Get an argument as a long.
- optLong(String) - Method in interface dan200.computercraft.api.lua.LuaTable
-
Get a table entry as an integer.
- optString(int) - Method in interface dan200.computercraft.api.lua.IArguments
-
Get an argument as a string.
- optString(int) - Method in interface dan200.computercraft.api.lua.LuaTable
-
Get an array entry as a double.
- optString(int, String) - Method in interface dan200.computercraft.api.lua.IArguments
-
Get an argument as a string.
- optString(String) - Method in interface dan200.computercraft.api.lua.LuaTable
-
Get a table entry as a string.
- optTable(int) - Method in interface dan200.computercraft.api.lua.IArguments
-
Get an argument as a table.
- optTable(int) - Method in interface dan200.computercraft.api.lua.LuaTable
-
Get an array entry as a table.
- optTable(int, Map<Object, Object>) - Method in interface dan200.computercraft.api.lua.IArguments
-
Get an argument as a table.
- optTable(String) - Method in interface dan200.computercraft.api.lua.LuaTable
-
Get a table entry as a table.
- optTableUnsafe(int) - Method in interface dan200.computercraft.api.lua.IArguments
-
Get an argument as a table in an unsafe manner.
- OUT_OF_SPACE - Static variable in class dan200.computercraft.api.filesystem.MountConstants
-
The error message used when the mount runs out of space.
P
- Packet - Record Class in dan200.computercraft.api.network
-
Represents a packet which may be sent across a
PacketNetwork
. - Packet(int, int, Object, PacketSender) - Constructor for record class dan200.computercraft.api.network.Packet
-
Creates an instance of a
Packet
record class. - PacketNetwork - Interface in dan200.computercraft.api.network
-
A packet network represents a collection of devices which can send and receive packets.
- PacketReceiver - Interface in dan200.computercraft.api.network
-
An object on an
PacketNetwork
, capable of receiving packets. - PacketSender - Interface in dan200.computercraft.api.network
-
An object on a
PacketNetwork
, capable of sending packets. - payload() - Method in record class dan200.computercraft.api.network.Packet
-
Returns the value of the
payload
record component. - PERIPHERAL - Enum constant in enum class dan200.computercraft.api.turtle.TurtleUpgradeType
-
A peripheral adds a special peripheral which is attached to the side of the turtle, and can be interacted with the
peripheral
API (Such as the modem on Wireless Turtles). - PERIPHERAL_HUB_IGNORE - Static variable in class dan200.computercraft.api.ComputerCraftTags.Blocks
-
Blocks which should be ignored by a
peripheral_hub
peripheral. - peripheralsAdded() - Method in interface dan200.computercraft.api.network.wired.WiredNetworkChange
-
A set of peripherals which have been added.
- peripheralsRemoved() - Method in interface dan200.computercraft.api.network.wired.WiredNetworkChange
-
A set of peripherals which have been removed.
- PeripheralType - Class in dan200.computercraft.api.peripheral
-
The type of a
GenericPeripheral
. - PeripheralType(String, Set<String>) - Constructor for class dan200.computercraft.api.peripheral.PeripheralType
- permissionLevel() - Method in interface dan200.computercraft.api.component.AdminComputer
-
The permission level that this computer can operate at.
- playAnimation(TurtleAnimation) - Method in interface dan200.computercraft.api.turtle.ITurtleAccess
-
Start playing a specific animation.
- POCKET - Static variable in class dan200.computercraft.api.component.ComputerComponents
-
The
IPocketAccess
associated with a pocket computer. - PocketUpgradeDataProvider - Class in dan200.computercraft.api.pocket
-
A data provider to generate pocket computer upgrades.
- PocketUpgradeDataProvider(PackOutput) - Constructor for class dan200.computercraft.api.pocket.PocketUpgradeDataProvider
- PocketUpgradeSerialiser<T extends IPocketUpgrade> - Interface in dan200.computercraft.api.pocket
-
Reads a
IPocketUpgrade
from disk and reads/writes it to a network packet. - pos() - Method in record class dan200.computercraft.api.detail.BlockReference
-
Returns the value of the
pos
record component. - PrintoutContents - Interface in dan200.computercraft.api.media
-
The contents of a page (or book) created by a ComputerCraft printer.
- provideDetails(Map<? super String, Object>, ItemStack) - Method in class dan200.computercraft.api.detail.BasicItemDetailProvider
- provideDetails(Map<? super String, Object>, ItemStack, T) - Method in class dan200.computercraft.api.detail.BasicItemDetailProvider
-
Provide additional details for the given
Item
andItemStack
. - provideDetails(Map<? super String, Object>, T) - Method in interface dan200.computercraft.api.detail.DetailProvider
-
Provide additional details for the given object.
- pullEvent(String, ILuaCallback) - Static method in class dan200.computercraft.api.lua.MethodResult
-
Wait for an event to occur on the computer, suspending the thread until it arises.
- pullEventRaw(String, ILuaCallback) - Static method in class dan200.computercraft.api.lua.MethodResult
-
The same as
MethodResult.pullEvent(String, ILuaCallback)
, except "terminated" events are ignored. - put(K, V) - Method in interface dan200.computercraft.api.lua.LuaTable
- putAll(Map<? extends K, ? extends V>) - Method in interface dan200.computercraft.api.lua.LuaTable
Q
- queueEvent(String, Object...) - Method in class dan200.computercraft.api.peripheral.AttachedComputerSet
-
Queue an event on all computers.
- queueEvent(String, Object...) - Method in interface dan200.computercraft.api.peripheral.IComputerAccess
-
Causes an event to be raised on this computer, which the computer can respond to by calling
os.pullEvent()
.
R
- READ_OPTIONS - Static variable in class dan200.computercraft.api.filesystem.MountConstants
- receiveDifferentDimension(Packet) - Method in interface dan200.computercraft.api.network.PacketReceiver
-
Receive a network packet from a different dimension.
- receiveSameDimension(Packet, double) - Method in interface dan200.computercraft.api.network.PacketReceiver
-
Receive a network packet from the same dimension.
- refuel(ITurtleAccess, ItemStack, int, int) - Method in interface dan200.computercraft.api.turtle.TurtleRefuelHandler
-
Refuel a turtle using an item.
- register(TurtleUpgradeSerialiser<T>, TurtleUpgradeModeller<T>) - Method in interface dan200.computercraft.api.client.turtle.RegisterTurtleUpgradeModeller
-
Register a
TurtleUpgradeModeller
. - registerAPIFactory(ILuaAPIFactory) - Static method in class dan200.computercraft.api.ComputerCraftAPI
-
Register a custom
ILuaAPI
, which may be added onto all computers without requiring a peripheral. - registerBundledRedstoneProvider(BundledRedstoneProvider) - Static method in class dan200.computercraft.api.ComputerCraftAPI
-
Registers a bundled redstone provider to provide bundled redstone output for blocks.
- registerGenericSource(GenericSource) - Static method in class dan200.computercraft.api.ComputerCraftAPI
-
Registers a method source for generic peripherals.
- registerMediaProvider(MediaProvider) - Static method in class dan200.computercraft.api.ComputerCraftAPI
-
Registers a media provider to provide
IMedia
implementations for Items. - registerRefuelHandler(TurtleRefuelHandler) - Static method in class dan200.computercraft.api.ComputerCraftAPI
-
Register a refuel handler for turtles.
- registerTurtleUpgradeModeller(TurtleUpgradeSerialiser<T>, TurtleUpgradeModeller<T>) - Static method in class dan200.computercraft.api.client.ComputerCraftAPIClient
-
Deprecated, for removal: This API element is subject to removal in a future version.This method can lead to confusing load behaviour on Forge. Use
dan200.computercraft.api.client.FabricComputerCraftAPIClient#registerTurtleUpgradeModeller
on Fabric, ordan200.computercraft.api.client.turtle.RegisterTurtleModellersEvent
on Forge. - RegisterTurtleUpgradeModeller - Interface in dan200.computercraft.api.client.turtle
-
A functional interface to register a
TurtleUpgradeModeller
for a class of turtle upgrades. - registryId() - Static method in interface dan200.computercraft.api.pocket.PocketUpgradeSerialiser
-
The ID for the associated registry.
- registryId() - Static method in interface dan200.computercraft.api.turtle.TurtleUpgradeSerialiser
-
The ID for the associated registry.
- remove() - Method in interface dan200.computercraft.api.network.wired.WiredNode
-
Sever all connections this node has, removing it from this network.
- remove(WiredNode) - Method in interface dan200.computercraft.api.network.wired.WiredNetwork
-
Deprecated.
- remove(IComputerAccess) - Method in class dan200.computercraft.api.peripheral.AttachedComputerSet
-
Remove a computer from this collection of computers.
- remove(Object) - Method in interface dan200.computercraft.api.lua.LuaTable
- removeReceiver(PacketReceiver) - Method in interface dan200.computercraft.api.network.PacketNetwork
-
Remove a receiver from the network.
- rename(String, String) - Method in interface dan200.computercraft.api.filesystem.WritableMount
-
Rename a file or directory, moving it from one path to another.
- replyChannel() - Method in record class dan200.computercraft.api.network.Packet
-
Returns the value of the
replyChannel
record component. - requireMod(String) - Method in record class dan200.computercraft.api.upgrades.UpgradeDataProvider.Upgrade
-
Return a new
UpgradeDataProvider.Upgrade
which requires the given mod to be present. - resume(Object[]) - Method in interface dan200.computercraft.api.lua.ILuaCallback
-
Resume this coroutine.
- RIGHT - Enum constant in enum class dan200.computercraft.api.turtle.TurtleSide
-
The turtle's right side (where the modem usually is on a Wireless Mining Turtle).
- run(CachedOutput) - Method in class dan200.computercraft.api.upgrades.UpgradeDataProvider
- runWork(Runnable) - Method in interface dan200.computercraft.api.peripheral.WorkMonitor
-
Run a task if possible, and inform the monitor of how long it took.
S
- sender() - Method in record class dan200.computercraft.api.network.Packet
-
Returns the value of the
sender
record component. - serialise() - Method in record class dan200.computercraft.api.upgrades.UpgradeDataProvider.Upgrade
-
Returns the value of the
serialise
record component. - serialiser() - Method in record class dan200.computercraft.api.upgrades.UpgradeDataProvider.Upgrade
-
Returns the value of the
serialiser
record component. - setColour(int) - Method in interface dan200.computercraft.api.pocket.IPocketAccess
-
Set the colour of the pocket computer to a RGB number.
- setColour(int) - Method in interface dan200.computercraft.api.turtle.ITurtleAccess
-
Set the colour of the turtle to a RGB number.
- setDirection(Direction) - Method in interface dan200.computercraft.api.turtle.ITurtleAccess
-
Set the direction the turtle is facing.
- setFuelLevel(int) - Method in interface dan200.computercraft.api.turtle.ITurtleAccess
-
Set the fuel level to a new value.
- setLabel(ItemStack, String) - Method in interface dan200.computercraft.api.media.IMedia
-
Set a string representing the label of this item.
- setLight(int) - Method in interface dan200.computercraft.api.pocket.IPocketAccess
-
Set the colour of the pocket computer's light to a RGB number.
- setSelectedSlot(int) - Method in interface dan200.computercraft.api.turtle.ITurtleAccess
-
Set the currently selected slot in the turtle's inventory.
- setUpgrade(UpgradeData<IPocketUpgrade>) - Method in interface dan200.computercraft.api.pocket.IPocketAccess
-
Set the upgrade for this pocket computer, also updating the item stack.
- setUpgrade(TurtleSide, ITurtleUpgrade) - Method in interface dan200.computercraft.api.turtle.ITurtleAccess
-
Deprecated.
- setUpgradeWithData(TurtleSide, UpgradeData<ITurtleUpgrade>) - Method in interface dan200.computercraft.api.turtle.ITurtleAccess
-
Set the upgrade for a given side and its upgrade data.
- SHORT_WAIT - Enum constant in enum class dan200.computercraft.api.turtle.TurtleAnimation
-
Wait until the animation has finished, performing no movement.
- shouldWork() - Method in interface dan200.computercraft.api.peripheral.WorkMonitor
-
If the owning computer is currently allowed to execute work, and has ample time to do so.
- shutdown() - Method in interface dan200.computercraft.api.lua.ILuaAPI
-
Called when the computer is turned off or unloaded.
- sided(ModelResourceLocation, ModelResourceLocation) - Static method in interface dan200.computercraft.api.client.turtle.TurtleUpgradeModeller
-
Construct a
TurtleUpgradeModeller
which has a single model for the left and right side. - sided(ResourceLocation, ResourceLocation) - Static method in interface dan200.computercraft.api.client.turtle.TurtleUpgradeModeller
-
Construct a
TurtleUpgradeModeller
which has a single model for the left and right side. - simple(Function<ResourceLocation, T>) - Static method in interface dan200.computercraft.api.pocket.PocketUpgradeSerialiser
-
Create an upgrade serialiser for a simple upgrade.
- simple(Function<ResourceLocation, T>) - Static method in interface dan200.computercraft.api.turtle.TurtleUpgradeSerialiser
-
Create an upgrade serialiser for a simple upgrade.
- simple(ResourceLocation, R) - Method in class dan200.computercraft.api.upgrades.UpgradeDataProvider
-
Register an upgrade using a "simple" serialiser (e.g.
- simpleWithCustomItem(BiFunction<ResourceLocation, ItemStack, T>) - Static method in interface dan200.computercraft.api.pocket.PocketUpgradeSerialiser
-
Create an upgrade serialiser for a simple upgrade whose crafting item can be specified.
- simpleWithCustomItem(BiFunction<ResourceLocation, ItemStack, T>) - Static method in interface dan200.computercraft.api.turtle.TurtleUpgradeSerialiser
-
Create an upgrade serialiser for a simple upgrade whose crafting item can be specified.
- simpleWithCustomItem(ResourceLocation, R, Item) - Method in class dan200.computercraft.api.upgrades.UpgradeDataProvider
-
Register an upgrade using a "simple" serialiser (e.g.
- size() - Method in record class dan200.computercraft.api.filesystem.FileAttributes
-
Returns the value of the
size
record component. - size() - Method in class dan200.computercraft.api.lua.ObjectLuaTable
- startup() - Method in interface dan200.computercraft.api.lua.ILuaAPI
-
Called when the computer is turned on.
- state() - Method in record class dan200.computercraft.api.detail.BlockReference
-
Returns the value of the
state
record component. - success() - Static method in class dan200.computercraft.api.turtle.TurtleCommandResult
-
Create a successful command result with no result.
- success(Object[]) - Static method in class dan200.computercraft.api.turtle.TurtleCommandResult
-
Create a successful command result with the given result values.
- SWING_LEFT_TOOL - Enum constant in enum class dan200.computercraft.api.turtle.TurtleAnimation
-
Swing the tool on the left.
- SWING_RIGHT_TOOL - Enum constant in enum class dan200.computercraft.api.turtle.TurtleAnimation
-
Swing the tool on the right.
T
- teleportTo(Level, BlockPos) - Method in interface dan200.computercraft.api.turtle.ITurtleAccess
-
Attempt to move this turtle to a new position.
- toNetwork(FriendlyByteBuf, T) - Method in interface dan200.computercraft.api.upgrades.UpgradeSerialiser
-
Write this upgrade to a network packet, to be sent to the client.
- tool(ResourceLocation, Item) - Method in class dan200.computercraft.api.turtle.TurtleUpgradeDataProvider
-
Create a new turtle tool upgrade, such as a pickaxe or shovel.
- TOOL - Enum constant in enum class dan200.computercraft.api.turtle.TurtleUpgradeType
-
A tool is rendered as an item on the side of the turtle, and responds to the
turtle.dig()
andturtle.attack()
methods (Such as pickaxe or sword on Mining and Melee turtles). - toString() - Method in class dan200.computercraft.api.component.ComputerComponent
- toString() - Method in record class dan200.computercraft.api.detail.BlockReference
-
Returns a string representation of this record class.
- toString() - Method in record class dan200.computercraft.api.filesystem.FileAttributes
-
Returns a string representation of this record class.
- toString() - Method in record class dan200.computercraft.api.lua.Coerced
-
Returns a string representation of this record class.
- toString() - Method in record class dan200.computercraft.api.network.Packet
-
Returns a string representation of this record class.
- toString() - Method in record class dan200.computercraft.api.upgrades.UpgradeData
-
Returns a string representation of this record class.
- toString() - Method in record class dan200.computercraft.api.upgrades.UpgradeDataProvider.Upgrade
-
Returns a string representation of this record class.
- trackWork(long, TimeUnit) - Method in interface dan200.computercraft.api.peripheral.WorkMonitor
-
Inform the monitor how long some piece of work took to execute.
- TransformedModel - Class in dan200.computercraft.api.client
-
A model to render, combined with a transformation matrix to apply.
- TransformedModel(BakedModel) - Constructor for class dan200.computercraft.api.client.TransformedModel
- TransformedModel(BakedModel, Transformation) - Constructor for class dan200.computercraft.api.client.TransformedModel
- transmitInterdimensional(Packet) - Method in interface dan200.computercraft.api.network.PacketNetwork
-
Submit a packet for transmitting across the network.
- transmitSameDimension(Packet, double) - Method in interface dan200.computercraft.api.network.PacketNetwork
-
Submit a packet for transmitting across the network.
- TURN_LEFT - Enum constant in enum class dan200.computercraft.api.turtle.TurtleAnimation
-
Turn the turtle to the left.
- TURN_RIGHT - Enum constant in enum class dan200.computercraft.api.turtle.TurtleAnimation
-
Turn the turtle to the left.
- TURTLE - Static variable in class dan200.computercraft.api.component.ComputerComponents
-
The
ITurtleAccess
associated with a turtle. - TURTLE - Static variable in class dan200.computercraft.api.ComputerCraftTags.Blocks
- TURTLE - Static variable in class dan200.computercraft.api.ComputerCraftTags.Items
- TURTLE_ALWAYS_BREAKABLE - Static variable in class dan200.computercraft.api.ComputerCraftTags.Blocks
-
Blocks which can be broken by any turtle tool.
- TURTLE_CAN_PLACE - Static variable in class dan200.computercraft.api.ComputerCraftTags.Items
-
Items which can be used when calling
turtle.place()
. - TURTLE_CAN_USE - Static variable in class dan200.computercraft.api.ComputerCraftTags.Blocks
-
Block which can be used when calling
turtle.place()
. - TURTLE_HOE_BREAKABLE - Static variable in class dan200.computercraft.api.ComputerCraftTags.Blocks
-
Blocks which can be broken with the default hoe tool.
- TURTLE_SHOVEL_BREAKABLE - Static variable in class dan200.computercraft.api.ComputerCraftTags.Blocks
-
Blocks which can be broken by the default shovel tool.
- TURTLE_SWORD_BREAKABLE - Static variable in class dan200.computercraft.api.ComputerCraftTags.Blocks
-
Blocks which can be broken with the default sword tool.
- TurtleAnimation - Enum Class in dan200.computercraft.api.turtle
-
An animation a turtle will play between executing commands.
- TurtleCommand - Interface in dan200.computercraft.api.turtle
-
An interface for objects executing custom turtle commands, used with
ITurtleAccess.executeCommand(TurtleCommand)
. - TurtleCommandResult - Class in dan200.computercraft.api.turtle
-
Used to indicate the result of executing a turtle command.
- TurtleRefuelHandler - Interface in dan200.computercraft.api.turtle
-
A function called when a turtle attempts to refuel via
turtle.refuel()
. - TurtleSide - Enum Class in dan200.computercraft.api.turtle
-
An enum representing the two sides of the turtle that a turtle upgrade might reside.
- TurtleToolDurability - Enum Class in dan200.computercraft.api.turtle
-
Indicates if an equipped turtle item will consume durability.
- TurtleUpgradeDataProvider - Class in dan200.computercraft.api.turtle
-
A data provider to generate turtle upgrades.
- TurtleUpgradeDataProvider(PackOutput) - Constructor for class dan200.computercraft.api.turtle.TurtleUpgradeDataProvider
- TurtleUpgradeDataProvider.ToolBuilder - Class in dan200.computercraft.api.turtle
-
A builder for custom turtle tool upgrades.
- TurtleUpgradeModeller<T extends ITurtleUpgrade> - Interface in dan200.computercraft.api.client.turtle
-
Provides models for a
ITurtleUpgrade
. - TurtleUpgradeSerialiser<T extends ITurtleUpgrade> - Interface in dan200.computercraft.api.turtle
-
Reads a
ITurtleUpgrade
from disk and reads/writes it to a network packet. - TurtleUpgradeType - Enum Class in dan200.computercraft.api.turtle
-
An enum representing the different types of turtle that an
ITurtleUpgrade
implementation can add to a turtle. - TurtleVerb - Enum Class in dan200.computercraft.api.turtle
-
An enum representing the different actions that an
ITurtleUpgrade
of type Tool may be called on to perform by a turtle.
U
- unmount(String) - Method in interface dan200.computercraft.api.peripheral.IComputerAccess
-
Unmounts a directory previously mounted onto the computers file system by
IComputerAccess.mount(String, Mount)
orIComputerAccess.mountWritable(String, WritableMount)
. - unsafe() - Element in annotation interface dan200.computercraft.api.lua.LuaFunction
-
Allow using "unsafe" arguments, such
IArguments.getTableUnsafe(int)
. - UNSUPPORTED_MODE - Static variable in class dan200.computercraft.api.filesystem.MountConstants
-
The error message to throw when an unsupported set of options were passed to
openFile(String, Set)
. - untyped() - Static method in class dan200.computercraft.api.peripheral.PeripheralType
-
An empty peripheral type, used when a
GenericPeripheral
does not have an explicit type. - update() - Method in interface dan200.computercraft.api.lua.ILuaAPI
-
Called every time the computer is ticked.
- update(IPocketAccess, IPeripheral) - Method in interface dan200.computercraft.api.pocket.IPocketUpgrade
-
Called when the pocket computer item stack updates.
- update(ITurtleAccess, TurtleSide) - Method in interface dan200.computercraft.api.turtle.ITurtleUpgrade
-
Called once per tick for each turtle which has the upgrade equipped.
- updatePeripherals(WiredNode, Map<String, IPeripheral>) - Method in interface dan200.computercraft.api.network.wired.WiredNetwork
-
Deprecated.
- updatePeripherals(Map<String, IPeripheral>) - Method in interface dan200.computercraft.api.network.wired.WiredNode
-
Mark this node's peripherals as having changed.
- updateUpgradeNBTData() - Method in interface dan200.computercraft.api.pocket.IPocketAccess
-
Mark the upgrade-specific NBT as dirty.
- updateUpgradeNBTData(TurtleSide) - Method in interface dan200.computercraft.api.turtle.ITurtleAccess
-
Mark the upgrade-specific data as dirty on a specific side.
- upgrade() - Method in record class dan200.computercraft.api.upgrades.UpgradeData
-
Returns the value of the
upgrade
record component. - Upgrade(ResourceLocation, R, Consumer<JsonObject>) - Constructor for record class dan200.computercraft.api.upgrades.UpgradeDataProvider.Upgrade
-
Creates an instance of a
Upgrade
record class. - UpgradeBase - Interface in dan200.computercraft.api.upgrades
-
Common functionality between
ITurtleUpgrade
andIPocketUpgrade
. - UpgradeData<T extends UpgradeBase> - Record Class in dan200.computercraft.api.upgrades
-
An upgrade (i.e.
- UpgradeData(T, CompoundTag) - Constructor for record class dan200.computercraft.api.upgrades.UpgradeData
-
Creates an instance of a
UpgradeData
record class. - UpgradeDataProvider<T extends UpgradeBase,
R extends UpgradeSerialiser<? extends T>> - Class in dan200.computercraft.api.upgrades -
A data generator/provider for turtle and pocket computer upgrades.
- UpgradeDataProvider(PackOutput, String, String, ResourceKey<Registry<R>>) - Constructor for class dan200.computercraft.api.upgrades.UpgradeDataProvider
- UpgradeDataProvider.Upgrade<R extends UpgradeSerialiser<?>> - Record Class in dan200.computercraft.api.upgrades
-
A constructed upgrade instance, produced
UpgradeDataProvider.addUpgrades(Consumer)
. - UpgradeSerialiser<T extends UpgradeBase> - Interface in dan200.computercraft.api.upgrades
-
Base interface for upgrade serialisers.
- useTool(ITurtleAccess, TurtleSide, TurtleVerb, Direction) - Method in interface dan200.computercraft.api.turtle.ITurtleUpgrade
-
Will only be called for Tool turtle.
V
- value() - Method in record class dan200.computercraft.api.lua.Coerced
-
Returns the value of the
value
record component. - value() - Element in annotation interface dan200.computercraft.api.lua.LuaFunction
-
Explicitly specify the method names of this function.
- valueOf(String) - Static method in enum class dan200.computercraft.api.turtle.TurtleAnimation
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class dan200.computercraft.api.turtle.TurtleSide
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class dan200.computercraft.api.turtle.TurtleToolDurability
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class dan200.computercraft.api.turtle.TurtleUpgradeType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class dan200.computercraft.api.turtle.TurtleVerb
-
Returns the enum constant of this class with the specified name.
- values() - Method in class dan200.computercraft.api.lua.ObjectLuaTable
- values() - Static method in enum class dan200.computercraft.api.turtle.TurtleAnimation
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class dan200.computercraft.api.turtle.TurtleSide
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class dan200.computercraft.api.turtle.TurtleToolDurability
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class dan200.computercraft.api.turtle.TurtleUpgradeType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class dan200.computercraft.api.turtle.TurtleVerb
-
Returns an array containing the constants of this enum class, in the order they are declared.
- VanillaDetailRegistries - Class in dan200.computercraft.api.detail
-
DetailRegistry
s for built-in Minecraft types. - VanillaDetailRegistries() - Constructor for class dan200.computercraft.api.detail.VanillaDetailRegistries
W
- WAIT - Enum constant in enum class dan200.computercraft.api.turtle.TurtleAnimation
-
Wait until the animation has finished, performing no movement.
- WHEN_ENCHANTED - Enum constant in enum class dan200.computercraft.api.turtle.TurtleToolDurability
-
The equipped tool consumes durability if it is enchanted or has custom attribute modifiers.
- WIRED_MODEM - Static variable in class dan200.computercraft.api.ComputerCraftTags.Blocks
- WIRED_MODEM - Static variable in class dan200.computercraft.api.ComputerCraftTags.Items
- WiredElement - Interface in dan200.computercraft.api.network.wired
-
An object which may be part of a wired network.
- WiredNetwork - Interface in dan200.computercraft.api.network.wired
-
A wired network is composed of one of more
WiredNode
s, a set of connections between them, and a series of peripherals. - WiredNetworkChange - Interface in dan200.computercraft.api.network.wired
-
Represents a change to the objects on a wired network.
- WiredNode - Interface in dan200.computercraft.api.network.wired
-
Wired nodes act as a layer between
WiredElement
s andWiredNetwork
s. - WiredSender - Interface in dan200.computercraft.api.network.wired
-
An object on a
WiredNetwork
capable of sending packets. - WorkMonitor - Interface in dan200.computercraft.api.peripheral
-
Monitors "work" associated with a computer, keeping track of how much a computer has done, and ensuring every computer receives a fair share of any processing time.
- WritableMount - Interface in dan200.computercraft.api.filesystem
-
Represents a part of a virtual filesystem that can be mounted onto a computer using
IComputerAccess.mount(String, Mount)
orIComputerAccess.mountWritable(String, WritableMount)
, that can also be written to. - WRITE_OPTIONS - Static variable in class dan200.computercraft.api.filesystem.MountConstants
Y
- yield(Object[], ILuaCallback) - Static method in class dan200.computercraft.api.lua.MethodResult
-
Yield the current coroutine with some arguments until it is resumed.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
WiredNode.connectTo(WiredNode)