Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- AbstractPocketUpgrade - Class in dan200.computercraft.api.pocket
-
A base class for
IPocketUpgrades. - AbstractPocketUpgrade(String, ItemStack) - Constructor for class dan200.computercraft.api.pocket.AbstractPocketUpgrade
- AbstractPocketUpgrade(Component, ItemStack) - Constructor for class dan200.computercraft.api.pocket.AbstractPocketUpgrade
- AbstractTurtleUpgrade - Class in dan200.computercraft.api.turtle
-
A base class for
ITurtleUpgrades. - AbstractTurtleUpgrade(TurtleUpgradeType, String, ItemStack) - Constructor for class dan200.computercraft.api.turtle.AbstractTurtleUpgrade
- AbstractTurtleUpgrade(TurtleUpgradeType, Component, ItemStack) - Constructor for class dan200.computercraft.api.turtle.AbstractTurtleUpgrade
- addFuel(int) - Method in interface dan200.computercraft.api.turtle.ITurtleAccess
-
Increase the turtle's fuel level by the given amount.
- addProvider(DetailProvider) - 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.
- adjective(Component) - Method in class dan200.computercraft.api.turtle.TurtleToolBuilder
-
Specify a custom adjective for this tool.
- 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.TurtleToolBuilder
-
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.
- ATTACK - Enum constant in enum class dan200.computercraft.api.turtle.TurtleVerb
-
The turtle called
turtle.attack(),turtle.attackUp()orturtle.attackDown().
B
- BasicItemDetailProvider<T> - Class in dan200.computercraft.api.detail
-
An item detail provider for
ItemStacks whoseItemhas a specific type. - BasicItemDetailProvider(String, Class) - Constructor for class dan200.computercraft.api.detail.BasicItemDetailProvider
-
Create a new item detail provider.
- BasicItemDetailProvider(Class) - 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 aBlockin the world. - blockEntity() - Method in record class dan200.computercraft.api.detail.BlockReference
-
Returns the value of the
blockEntityrecord 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
BlockReferencerecord 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) - Method in class dan200.computercraft.api.turtle.TurtleToolBuilder
-
Provide a list of breakable blocks.
- build() - Method in class dan200.computercraft.api.turtle.TurtleToolBuilder
-
Build the turtle tool upgrade.
- Built-in detail providers - Section in package dan200.computercraft.api.detail
- BundledRedstoneProvider - Interface in dan200.computercraft.api.redstone
-
This interface is used to provide bundled redstone output for blocks.
C
- channel() - Method in record class dan200.computercraft.api.network.Packet
-
Returns the value of the
channelrecord component. - codec() - Method in interface dan200.computercraft.api.upgrades.UpgradeType
-
The codec to read and write this upgrade from a datapack.
- CODEC - Static variable in enum class dan200.computercraft.api.turtle.TurtleToolDurability
-
The codec which may be used for serialising/deserialising
TurtleToolDurabilitys. - ComponentDetailProvider<T> - Class in dan200.computercraft.api.detail
-
An item detail provider for a specific data component on
ItemStacks or otherDataComponentHolder. - ComponentDetailProvider(String, DataComponentType) - Constructor for class dan200.computercraft.api.detail.ComponentDetailProvider
-
Create a new component detail provider.
- ComponentDetailProvider(DataComponentType) - Constructor for class dan200.computercraft.api.detail.ComponentDetailProvider
-
Create a new component detail provider.
- COMPUTER - Static variable in class dan200.computercraft.api.ComputerCraftTags.Blocks
-
All computers.
- COMPUTER - Static variable in class dan200.computercraft.api.ComputerCraftTags.Items
-
All computers.
- ComputerComponent<T> - Class in dan200.computercraft.api.component
-
A component attached to a computer.
- ComputerComponents - Class in dan200.computercraft.api.component
-
The
ComputerComponents 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
- 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
-
Block tags provided by ComputerCraft.
- ComputerCraftTags.Items - Class in dan200.computercraft.api
-
Item tags provided by ComputerCraft.
- 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.TurtleToolBuilder
-
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.
- create(MapCodec) - Static method in interface dan200.computercraft.api.upgrades.UpgradeType
-
Create a new upgrade type.
- 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.
- createKey(ResourceLocation) - Static method in interface dan200.computercraft.api.turtle.ITurtleUpgrade
-
Create a
ResourceKeyfor a turtle upgrade given aResourceLocation. - 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.
D
- damageMultiplier(float) - Method in class dan200.computercraft.api.turtle.TurtleToolBuilder
-
The amount of damage a swing of this tool will do.
- dan200.computercraft.api - package dan200.computercraft.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.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.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
datarecord component. - Data Generation - Section in interface dan200.computercraft.api.upgrades.UpgradeType
- 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(). - disconnectFrom(WiredNode) - Method in interface dan200.computercraft.api.network.wired.WiredNode
-
Destroy a connection between this node and another.
- DISKS - Static variable in class dan200.computercraft.api.ComputerCraftTags.Items
-
Floppy disks.
- DYEABLE - Static variable in class dan200.computercraft.api.ComputerCraftTags.Items
-
Items which can be dyed.
E
- ENTITY - Static variable in class dan200.computercraft.api.detail.VanillaDetailRegistries
-
Provides details for
Entitys. - equals(Object) - Method in record class dan200.computercraft.api.client.TransformedModel
-
Indicates whether some other object is "equal to" this 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.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.
- Example - Section in class dan200.computercraft.api.turtle.TurtleToolBuilder
- Example - Section in interface dan200.computercraft.api.client.turtle.TurtleUpgradeModeller
- Example - Section in interface dan200.computercraft.api.turtle.ITurtleUpgrade
- Example: Registering custom detail registries - Section in package dan200.computercraft.api.detail
- Example: Returning details from methods - Section in package dan200.computercraft.api.detail
- 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.
F
- Fabric - Section in interface dan200.computercraft.api.client.turtle.TurtleUpgradeModeller
- Fabric - Section in interface dan200.computercraft.api.turtle.ITurtleUpgrade
- Fabric - Section in interface dan200.computercraft.api.turtle.ITurtleUpgrade
- Fabric - Section in interface dan200.computercraft.api.turtle.ITurtleUpgrade
- 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.
- flatItem() - Static method in interface dan200.computercraft.api.client.turtle.TurtleUpgradeModeller
-
A basic
TurtleUpgradeModellerwhich renders using the upgrade's UpgradeBase.getUpgradeItem(DataComponentPatch) upgrade item}. - Forge - Section in interface dan200.computercraft.api.client.turtle.TurtleUpgradeModeller
- Forge - Section in interface dan200.computercraft.api.turtle.ITurtleUpgrade
- Forge - Section in interface dan200.computercraft.api.turtle.ITurtleUpgrade
- Forge - Section in interface dan200.computercraft.api.turtle.ITurtleUpgrade
G
- get(ItemStack) - Static method in interface dan200.computercraft.api.media.PrintoutContents
-
Get the printout contents for a particular stack.
- getAdjective() - Method in class dan200.computercraft.api.pocket.AbstractPocketUpgrade
- getAdjective() - Method in class dan200.computercraft.api.turtle.AbstractTurtleUpgrade
- getAdjective() - Method in interface dan200.computercraft.api.upgrades.UpgradeBase
-
A description of this upgrade for use in item names.
- getAudio(HolderLookup.Provider, ItemStack) - Method in interface dan200.computercraft.api.media.IMedia
-
If this disk represents an item with audio (like a record), get the corresponding
JukeboxSong. - getBasicDetails(T) - Method in interface dan200.computercraft.api.detail.DetailRegistry
-
Compute basic details about an object.
- 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.
- 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) - 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 class dan200.computercraft.api.client.ModelLocation
-
Get the models this model location depends on.
- getDependencies() - Method in interface dan200.computercraft.api.client.turtle.TurtleUpgradeModeller
-
Get the 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.
- 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.
- getErrorMessage() - Method in class dan200.computercraft.api.turtle.TurtleCommandResult
-
Get the error message of this command result.
- 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.
- getInstalledVersion() - Static method in class dan200.computercraft.api.ComputerCraftAPI
- 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(HolderLookup.Provider, 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 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.
- getMedia(ItemStack) - Method in interface dan200.computercraft.api.media.MediaProvider
-
Produce an IMedia implementation from an ItemStack.
- getModel(ModelManager) - Method in class dan200.computercraft.api.client.ModelLocation
-
Get this model from the provided model manager.
- getModel(T, ITurtleAccess, TurtleSide, DataComponentPatch) - Method in interface dan200.computercraft.api.client.turtle.TurtleUpgradeModeller
-
Obtain the model to be used when rendering a turtle peripheral.
- getNode() - Method in interface dan200.computercraft.api.network.wired.WiredSender
-
The node in the network representing this object.
- 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(DataComponentPatch) - 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.
- getRange() - Method in interface dan200.computercraft.api.network.PacketReceiver
-
Get the maximum distance this receiver can send and receive messages.
- 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
- 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.pocket.IPocketUpgrade
-
Get the type of this upgrade.
- getType() - Method in interface dan200.computercraft.api.turtle.ITurtleUpgrade
-
Get the type of this upgrade.
- getType() - Method in interface dan200.computercraft.api.upgrades.UpgradeBase
-
Get the type of this upgrade.
- 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() - Method in interface dan200.computercraft.api.pocket.IPocketAccess
-
Get the upgrade-specific NBT.
- getUpgradeData(TurtleSide) - Method in interface dan200.computercraft.api.turtle.ITurtleAccess
-
Get an upgrade-specific NBT compound, which can be used to store arbitrary data.
- getUpgradeData(ItemStack) - Method in interface dan200.computercraft.api.upgrades.UpgradeBase
-
Extract upgrade data from an
ItemStack. - getUpgradeItem() - Method in record class dan200.computercraft.api.upgrades.UpgradeData
-
Get the upgrade item for this upgrade.
- getUpgradeItem(DataComponentPatch) - Method in interface dan200.computercraft.api.upgrades.UpgradeBase
-
Returns the item stack representing a currently equipped turtle upgrade.
- getUpgradeType() - Method in class dan200.computercraft.api.turtle.AbstractTurtleUpgrade
- getUpgradeType() - Method in interface dan200.computercraft.api.turtle.ITurtleUpgrade
-
Return whether this turtle adds a tool or a peripheral to the turtle.
- 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
- hashCode() - Method in record class dan200.computercraft.api.client.TransformedModel
-
Returns a hash code value for this object.
- 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.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.
- holder() - Method in record class dan200.computercraft.api.upgrades.UpgradeData
-
Returns the value of the
holderrecord component.
I
- IComputerSystem - Interface in dan200.computercraft.api.lua
-
An interface passed to
ILuaAPIFactoryin order to provide additional information about a computer. - id() - Method in class dan200.computercraft.api.turtle.TurtleToolBuilder
-
Get the id for this turtle tool.
- ILuaAPIFactory - Interface in dan200.computercraft.api.lua
-
Construct an
ILuaAPIfor a computer. - 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.
- 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.
- 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.
- isPeripheral() - Method in enum class dan200.computercraft.api.turtle.TurtleUpgradeType
- 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.
- 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
ItemStacks. - 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.
L
- 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).
- level() - Method in record class dan200.computercraft.api.detail.BlockReference
-
Returns the value of the
levelrecord component.
M
- matrix() - Method in record class dan200.computercraft.api.client.TransformedModel
-
Returns the value of the
matrixrecord component. - MediaProvider - Interface in dan200.computercraft.api.media
-
This interface is used to provide
IMediaimplementations forItemStack. - MOD_ID - Static variable in class dan200.computercraft.api.ComputerCraftAPI
- model() - Method in record class dan200.computercraft.api.client.TransformedModel
-
Returns the value of the
modelrecord component. - ModelLocation - Class in dan200.computercraft.api.client
-
The location of a model to load.
- MONITOR - Static variable in class dan200.computercraft.api.ComputerCraftTags.Blocks
-
All monitors.
- MONITOR - Static variable in class dan200.computercraft.api.ComputerCraftTags.Items
-
All monitors.
- 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.
- NONE - Enum constant in enum class dan200.computercraft.api.turtle.TurtleAnimation
-
An animation which does nothing.
O
- of(ModelLocation) - Static method in record class dan200.computercraft.api.client.TransformedModel
-
Look up a model in the model bakery and construct a
TransformedModelwith no transformation. - of(ModelResourceLocation) - Static method in record class dan200.computercraft.api.client.TransformedModel
-
Look up a model in the model bakery and construct a
TransformedModelwith no transformation. - of(Holder.Reference, DataComponentPatch) - Static method in record class dan200.computercraft.api.upgrades.UpgradeData
-
A utility method to construct a new
UpgradeDatainstance. - of(ResourceLocation) - Static method in record class dan200.computercraft.api.client.TransformedModel
-
Look up a model in the model bakery and construct a
TransformedModelwith no transformation. - of(ItemStack, Transformation) - Static method in record class dan200.computercraft.api.client.TransformedModel
- ofDefault(Holder.Reference) - Static method in record class dan200.computercraft.api.upgrades.UpgradeData
-
Create an
UpgradeDatacontaining the default data for an upgrade. - ofModel(ModelResourceLocation) - Static method in class dan200.computercraft.api.client.ModelLocation
-
Create a
ModelLocationfrom model in the model manager. - ofResource(ResourceLocation) - Static method in class dan200.computercraft.api.client.ModelLocation
-
Create a
ModelLocationfrom a resource. - onRightClick(Level, IPocketAccess, IPeripheral) - Method in interface dan200.computercraft.api.pocket.IPocketUpgrade
-
Called when the pocket computer is right clicked.
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
Packetrecord 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
payloadrecord 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
peripheralAPI (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_hubperipheral. - Peripherals - Section in Overview
- 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.
- 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
IPocketAccessassociated with a pocket computer. - POCKET_COMPUTERS - Static variable in class dan200.computercraft.api.ComputerCraftTags.Items
-
All pocket computers.
- pos() - Method in record class dan200.computercraft.api.detail.BlockReference
-
Returns the value of the
posrecord component. - PrintoutContents - Interface in dan200.computercraft.api.media
-
The contents of a page (or book) created by a ComputerCraft printer.
- provideComponentDetails(Map, T) - Method in class dan200.computercraft.api.detail.ComponentDetailProvider
-
Provide additional details for the given data component.
- provideDetails(Map, DataComponentHolder) - Method in class dan200.computercraft.api.detail.ComponentDetailProvider
- provideDetails(Map, ItemStack) - Method in class dan200.computercraft.api.detail.BasicItemDetailProvider
- provideDetails(Map, ItemStack, T) - Method in class dan200.computercraft.api.detail.BasicItemDetailProvider
-
Provide additional details for the given
ItemandItemStack. - provideDetails(Map, T) - Method in interface dan200.computercraft.api.detail.DetailProvider
-
Provide additional details for the given object.
Q
- Quick links - Section in Overview
R
- 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(UpgradeType, TurtleUpgradeModeller) - Method in interface dan200.computercraft.api.client.turtle.RegisterTurtleUpgradeModeller
-
Register a
TurtleUpgradeModeller. - register(BootstrapContext) - Method in class dan200.computercraft.api.turtle.TurtleToolBuilder
-
Build this upgrade and register it for datagen.
- 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.
- Registering the upgrade itself - Section in interface dan200.computercraft.api.turtle.ITurtleUpgrade
- Registering the upgrade type - Section in interface dan200.computercraft.api.turtle.ITurtleUpgrade
- registerMediaProvider(MediaProvider) - Static method in class dan200.computercraft.api.ComputerCraftAPI
-
Deprecated.
- registerRefuelHandler(TurtleRefuelHandler) - Static method in class dan200.computercraft.api.ComputerCraftAPI
-
Register a refuel handler for turtles.
- RegisterTurtleUpgradeModeller - Interface in dan200.computercraft.api.client.turtle
-
A functional interface to register a
TurtleUpgradeModellerfor a class of turtle upgrades. - REGISTRY - Static variable in interface dan200.computercraft.api.pocket.IPocketUpgrade
- REGISTRY - Static variable in interface dan200.computercraft.api.turtle.ITurtleUpgrade
-
The registry in which turtle upgrades are stored.
- remove() - Method in interface dan200.computercraft.api.network.wired.WiredNode
-
Sever all connections this node has, removing it from this network.
- removeReceiver(PacketReceiver) - Method in interface dan200.computercraft.api.network.PacketNetwork
-
Remove a receiver from the network.
- Rendering the upgrade - Section in interface dan200.computercraft.api.turtle.ITurtleUpgrade
- replyChannel() - Method in record class dan200.computercraft.api.network.Packet
-
Returns the value of the
replyChannelrecord component. - 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).
S
- sender() - Method in record class dan200.computercraft.api.network.Packet
-
Returns the value of the
senderrecord 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(TurtleSide, UpgradeData) - Method in interface dan200.computercraft.api.turtle.ITurtleAccess
-
Set the upgrade for a given side and its upgrade data.
- setUpgrade(UpgradeData) - Method in interface dan200.computercraft.api.pocket.IPocketAccess
-
Set the upgrade for this pocket computer, also updating the item stack.
- setUpgradeData(TurtleSide, DataComponentPatch) - Method in interface dan200.computercraft.api.turtle.ITurtleAccess
-
Update the upgrade-specific data.
- setUpgradeData(DataComponentPatch) - Method in interface dan200.computercraft.api.pocket.IPocketAccess
-
Update the upgrade-specific data.
- SHORT_WAIT - Enum constant in enum class dan200.computercraft.api.turtle.TurtleAnimation
-
Wait until the animation has finished, performing no movement.
- sided(ModelLocation, ModelLocation) - Static method in interface dan200.computercraft.api.client.turtle.TurtleUpgradeModeller
-
Construct a
TurtleUpgradeModellerwhich 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
TurtleUpgradeModellerwhich has a single model for the left and right side. - simple(T) - Static method in interface dan200.computercraft.api.upgrades.UpgradeType
-
Create an upgrade type for an upgrade that takes no arguments.
- simpleWithCustomItem(Function) - Static method in interface dan200.computercraft.api.upgrades.UpgradeType
-
Create an upgrade type for a simple upgrade whose crafting item can be specified.
- state() - Method in record class dan200.computercraft.api.detail.BlockReference
-
Returns the value of the
staterecord 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.
- tool(ResourceKey, Item) - Static method in class dan200.computercraft.api.turtle.TurtleToolBuilder
- tool(ResourceLocation, Item) - Static method in class dan200.computercraft.api.turtle.TurtleToolBuilder
- 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 record class dan200.computercraft.api.client.TransformedModel
-
Returns a string representation of this record class.
- 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.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.
- TransformedModel - Record Class in dan200.computercraft.api.client
-
A model to render, combined with a transformation matrix to apply.
- TransformedModel(BakedModel) - Constructor for record class dan200.computercraft.api.client.TransformedModel
- TransformedModel(BakedModel, Transformation) - Constructor for record class dan200.computercraft.api.client.TransformedModel
-
Creates an instance of a
TransformedModelrecord class. - 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
ITurtleAccessassociated with a turtle. - TURTLE - Static variable in class dan200.computercraft.api.ComputerCraftTags.Blocks
-
All turtles.
- TURTLE - Static variable in class dan200.computercraft.api.ComputerCraftTags.Items
-
All turtles.
- 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.
- Turtle and pocket upgrades - Section in Overview
- 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.
- TurtleToolBuilder - Class in dan200.computercraft.api.turtle
-
A builder for custom turtle tool upgrades.
- TurtleToolDurability - Enum Class in dan200.computercraft.api.turtle
-
Indicates if an equipped turtle item will consume durability.
- TurtleUpgradeModeller<T> - Interface in dan200.computercraft.api.client.turtle
-
Provides models for a
ITurtleUpgrade. - TurtleUpgradeType - Enum Class in dan200.computercraft.api.turtle
-
An enum representing the different types of turtle that an
ITurtleUpgradeimplementation can add to a turtle. - TurtleVerb - Enum Class in dan200.computercraft.api.turtle
-
An enum representing the different actions that an
ITurtleUpgradeof type Tool may be called on to perform by a turtle. - typeRegistry() - Static method in interface dan200.computercraft.api.pocket.IPocketUpgrade
-
The registry key for pocket upgrade types.
- typeRegistry() - Static method in interface dan200.computercraft.api.turtle.ITurtleUpgrade
-
The registry key for turtle upgrade types.
U
- 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(Map) - Method in interface dan200.computercraft.api.network.wired.WiredNode
-
Mark this node's peripherals as having changed.
- Updating from Minecraft 1.20.1 to 1.21.1 - Section in Overview
- upgrade() - Method in record class dan200.computercraft.api.upgrades.UpgradeData
-
Get the current upgrade.
- UpgradeBase - Interface in dan200.computercraft.api.upgrades
-
Common functionality between
ITurtleUpgradeandIPocketUpgrade. - UpgradeData<T> - Record Class in dan200.computercraft.api.upgrades
-
An upgrade (i.e.
- UpgradeData(Holder.Reference, DataComponentPatch) - Constructor for record class dan200.computercraft.api.upgrades.UpgradeData
-
Creates an instance of a
UpgradeDatarecord class. - UpgradeType<T> - Interface in dan200.computercraft.api.upgrades
- useTool(ITurtleAccess, TurtleSide, TurtleVerb, Direction) - Method in interface dan200.computercraft.api.turtle.ITurtleUpgrade
-
Will only be called for Tool turtle.
- Using - Section in Overview
V
- 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() - 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
-
DetailRegistrys 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
-
All modems.
- WIRED_MODEM - Static variable in class dan200.computercraft.api.ComputerCraftTags.Items
-
All modems.
- WiredElement - Interface in dan200.computercraft.api.network.wired
-
An object which may be part of a wired network.
- 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
-
A single node on a wired network.
- WiredSender - Interface in dan200.computercraft.api.network.wired
-
An object on a wired network capable of sending packets.
All Classes and Interfaces|All Packages|Constant Field Values
dan200.computercraft.api.media.MediaLookup(Fabric) ordan200.computercraft.api.media.MediaCapability(NeoForge).