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, ItemStackTemplate) - Constructor for class dan200.computercraft.api.pocket.AbstractPocketUpgrade
- AbstractPocketUpgrade(Component, ItemStackTemplate) - Constructor for class dan200.computercraft.api.pocket.AbstractPocketUpgrade
- AbstractTurtleUpgrade - Class in dan200.computercraft.api.turtle
-
A base class for
ITurtleUpgrades. - AbstractTurtleUpgrade(TurtleUpgradeType, String, ItemStackTemplate) - Constructor for class dan200.computercraft.api.turtle.AbstractTurtleUpgrade
- AbstractTurtleUpgrade(TurtleUpgradeType, Component, ItemStackTemplate) - 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.
- addProvider(BiConsumer) - 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
- bake(ModelBaker) - Method in interface dan200.computercraft.api.client.turtle.TurtleUpgradeModel.Unbaked
-
Bake this turtle model.
- 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.
- BasicUpgradeModel - Class in dan200.computercraft.api.client.turtle
-
A
TurtleUpgradeModelthat renders a basic model. - 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. - 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
- CABLE - Static variable in class dan200.computercraft.api.ComputerCraftBlockIds
- CABLE - Static variable in class dan200.computercraft.api.ComputerCraftItemIds
- 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 class dan200.computercraft.api.client.turtle.BasicUpgradeModel
- CODEC - Static variable in class dan200.computercraft.api.client.turtle.ItemUpgradeModel
- CODEC - Static variable in class dan200.computercraft.api.client.turtle.SelectUpgradeModel
- CODEC - Static variable in interface dan200.computercraft.api.client.turtle.TurtleUpgradeModel
-
The codec used to read/write unbaked upgrade models.
- CODEC - Static variable in enum class dan200.computercraft.api.turtle.TurtleSide
- 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.BlockItems
-
All computers.
- COMPUTER - Static variable in class dan200.computercraft.api.ComputerCraftTags.Blocks
-
All computers.
- COMPUTER - Static variable in class dan200.computercraft.api.ComputerCraftTags.Items
-
All computers.
- COMPUTER_ADVANCED - Static variable in class dan200.computercraft.api.ComputerCraftBlockIds
- COMPUTER_ADVANCED - Static variable in class dan200.computercraft.api.ComputerCraftBlockItemIds
- COMPUTER_ADVANCED - Static variable in class dan200.computercraft.api.ComputerCraftItemIds
- COMPUTER_COMMAND - Static variable in class dan200.computercraft.api.ComputerCraftBlockIds
- COMPUTER_COMMAND - Static variable in class dan200.computercraft.api.ComputerCraftBlockItemIds
- COMPUTER_COMMAND - Static variable in class dan200.computercraft.api.ComputerCraftItemIds
- COMPUTER_NORMAL - Static variable in class dan200.computercraft.api.ComputerCraftBlockIds
- COMPUTER_NORMAL - Static variable in class dan200.computercraft.api.ComputerCraftBlockItemIds
- COMPUTER_NORMAL - Static variable in class dan200.computercraft.api.ComputerCraftItemIds
- 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
- ComputerCraftBlockIds - Class in dan200.computercraft.api
-
The identifiers of blocks provided by ComputerCraft.
- ComputerCraftBlockItemIds - Class in dan200.computercraft.api
-
The identifiers of blocks and items provided by ComputerCraft.
- ComputerCraftItemIds - Class in dan200.computercraft.api
-
The identifiers of items provided by ComputerCraft.
- ComputerCraftTags - Class in dan200.computercraft.api
-
Tags provided by ComputerCraft.
- ComputerCraftTags() - Constructor for class dan200.computercraft.api.ComputerCraftTags
- ComputerCraftTags.BlockItems - Class in dan200.computercraft.api
- 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() - Method in class dan200.computercraft.api.client.turtle.SelectUpgradeModel.Builder
-
Convert this builder into an unbaked model.
- 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(Identifier) - Static method in interface dan200.computercraft.api.turtle.ITurtleUpgrade
-
Deprecated, for removal: This API element is subject to removal in a future version.
- 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.
- DISK - Static variable in class dan200.computercraft.api.ComputerCraftItemIds
- DISK_DRIVE - Static variable in class dan200.computercraft.api.ComputerCraftBlockIds
- DISK_DRIVE - Static variable in class dan200.computercraft.api.ComputerCraftBlockItemIds
- DISK_DRIVE - Static variable in class dan200.computercraft.api.ComputerCraftItemIds
- 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.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.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.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.
- fallback(TurtleUpgradeModel.Unbaked) - Method in class dan200.computercraft.api.client.turtle.SelectUpgradeModel.Builder
-
Add a fallback value, when no previous value matches or the component is not present.
- Forge - Section in interface dan200.computercraft.api.turtle.ITurtleUpgrade
- Forge - Section in interface dan200.computercraft.api.turtle.ITurtleUpgrade
G
- get(DataComponentType) - Method in record class dan200.computercraft.api.upgrades.UpgradeData
-
Get a component from the upgrade's
UpgradeData.data(). - 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(HolderLookup.Provider, 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.PocketComputer
-
Get the colour of this pocket computer as an 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(Identifier) - Static method in interface dan200.computercraft.api.upgrades.UpgradeBase
-
Get a suitable default unlocalised adjective for an upgrade ID.
- getDetails(HolderLookup.Provider, T) - Method in interface dan200.computercraft.api.detail.DetailRegistry
-
Compute all details about an object, using
DetailRegistry.getBasicDetails(HolderLookup.Provider, 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.PocketComputer
-
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.PocketComputer
-
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.
- 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.PocketComputer
-
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.TurtleSide
- 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(ItemStackTemplate) - 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.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.
- ID - Static variable in class dan200.computercraft.api.client.turtle.BasicUpgradeModel
- ID - Static variable in class dan200.computercraft.api.client.turtle.ItemUpgradeModel
- ID - Static variable in class dan200.computercraft.api.client.turtle.SelectUpgradeModel
- 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
-
Access to a pocket computer for pocket upgrades.
- IPocketUpgrade - Interface in dan200.computercraft.api.pocket
-
A peripheral which can be equipped to the back side of a pocket computer.
- isActive() - Method in interface dan200.computercraft.api.pocket.PocketComputer
-
Check whether this pocket computer is currently being held by a player, lectern, or other valid entity.
- 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. - ItemUpgradeModel - Class in dan200.computercraft.api.client.turtle
-
A
TurtleUpgradeModelthat renders the upgrade's upgrade item. - 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
- LECTERN - Static variable in class dan200.computercraft.api.ComputerCraftBlockIds
- 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
- MOD_ID - Static variable in class dan200.computercraft.api.ComputerCraftAPI
- MONITOR - Static variable in class dan200.computercraft.api.ComputerCraftTags.BlockItems
-
All monitors.
- MONITOR - Static variable in class dan200.computercraft.api.ComputerCraftTags.Blocks
-
All monitors.
- MONITOR - Static variable in class dan200.computercraft.api.ComputerCraftTags.Items
-
All monitors.
- MONITOR_ADVANCED - Static variable in class dan200.computercraft.api.ComputerCraftBlockIds
- MONITOR_ADVANCED - Static variable in class dan200.computercraft.api.ComputerCraftBlockItemIds
- MONITOR_ADVANCED - Static variable in class dan200.computercraft.api.ComputerCraftItemIds
- MONITOR_NORMAL - Static variable in class dan200.computercraft.api.ComputerCraftBlockIds
- MONITOR_NORMAL - Static variable in class dan200.computercraft.api.ComputerCraftBlockItemIds
- MONITOR_NORMAL - Static variable in class dan200.computercraft.api.ComputerCraftItemIds
- 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(ResolvedModel, ModelBaker) - Static method in class dan200.computercraft.api.client.StandaloneModel
-
Bake a
ResolvedModelinto aStandaloneModel. - of(Holder.Reference, DataComponentPatch) - Static method in record class dan200.computercraft.api.upgrades.UpgradeData
-
A utility method to construct a new
UpgradeDatainstance. - of(Identifier, ModelBaker) - Static method in class dan200.computercraft.api.client.StandaloneModel
-
Load a model from a
ModelBakerand bake it. - ofDefault(Holder.Reference) - Static method in record class dan200.computercraft.api.upgrades.UpgradeData
-
Create an
UpgradeDatacontaining the default data for an upgrade. - onComponent(DataComponentType) - Static method in class dan200.computercraft.api.client.turtle.SelectUpgradeModel
-
Create a
SelectUpgradeModelthat selects a model based on a component. - onRightClick(ServerLevel, 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.
- permissions() - Method in interface dan200.computercraft.api.component.AdminComputer
-
The permissions that this computer has.
- 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_COMPUTER_ADVANCED - Static variable in class dan200.computercraft.api.ComputerCraftItemIds
- POCKET_COMPUTER_NORMAL - Static variable in class dan200.computercraft.api.ComputerCraftItemIds
- POCKET_COMPUTERS - Static variable in class dan200.computercraft.api.ComputerCraftTags.Items
-
All pocket computers.
- PocketComputer - Interface in dan200.computercraft.api.pocket
-
A pocket computer.
- pos() - Method in record class dan200.computercraft.api.detail.BlockReference
-
Returns the value of the
posrecord component. - PRINTED_BOOK - Static variable in class dan200.computercraft.api.ComputerCraftItemIds
- PRINTED_PAGE - Static variable in class dan200.computercraft.api.ComputerCraftItemIds
- PRINTED_PAGES - Static variable in class dan200.computercraft.api.ComputerCraftItemIds
- PRINTER - Static variable in class dan200.computercraft.api.ComputerCraftBlockIds
- PRINTER - Static variable in class dan200.computercraft.api.ComputerCraftBlockItemIds
- PRINTER - Static variable in class dan200.computercraft.api.ComputerCraftItemIds
- PrintoutContents - Interface in dan200.computercraft.api.media
-
The contents of a page (or book) created by a ComputerCraft printer.
- provideComponentDetails(Map, HolderLookup.Provider, T) - Method in class dan200.computercraft.api.detail.ComponentDetailProvider
-
Provide additional details for the given data component.
- provideDetails(Map, HolderLookup.Provider, DataComponentHolder) - Method in class dan200.computercraft.api.detail.ComponentDetailProvider
- provideDetails(Map, HolderLookup.Provider, ItemStack) - Method in class dan200.computercraft.api.detail.BasicItemDetailProvider
- provideDetails(Map, HolderLookup.Provider, ItemStack, T) - Method in class dan200.computercraft.api.detail.BasicItemDetailProvider
-
Provide additional details for the given
ItemandItemStack. - provideDetails(Map, HolderLookup.Provider, 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.
- REDSTONE_RELAY - Static variable in class dan200.computercraft.api.ComputerCraftBlockIds
- REDSTONE_RELAY - Static variable in class dan200.computercraft.api.ComputerCraftBlockItemIds
- REDSTONE_RELAY - Static variable in class dan200.computercraft.api.ComputerCraftItemIds
- refuel(ITurtleAccess, ItemStack, int, int) - Method in interface dan200.computercraft.api.turtle.TurtleRefuelHandler
-
Refuel a turtle using an item.
- register(BootstrapContext) - Method in class dan200.computercraft.api.turtle.TurtleToolBuilder
-
Build this upgrade and register it for datagen.
- register(Identifier, MapCodec) - Method in interface dan200.computercraft.api.client.turtle.RegisterTurtleUpgradeModel
-
Register a
TurtleUpgradeModel. - 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.
- registerGenericSource(Function) - 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
- registerRefuelHandler(TurtleRefuelHandler) - Static method in class dan200.computercraft.api.ComputerCraftAPI
-
Register a refuel handler for turtles.
- RegisterTurtleUpgradeModel - Interface in dan200.computercraft.api.client.turtle
-
A functional interface to register a
TurtleUpgradeModel. - 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.
- renderForItem(UpgradeData, TurtleSide, ItemStackRenderState, ItemModelResolver, ItemTransform, int) - Method in class dan200.computercraft.api.client.turtle.BasicUpgradeModel
- renderForItem(UpgradeData, TurtleSide, ItemStackRenderState, ItemModelResolver, ItemTransform, int) - Method in class dan200.computercraft.api.client.turtle.ItemUpgradeModel
- renderForItem(UpgradeData, TurtleSide, ItemStackRenderState, ItemModelResolver, ItemTransform, int) - Method in class dan200.computercraft.api.client.turtle.SelectUpgradeModel
- renderForItem(UpgradeData, TurtleSide, ItemStackRenderState, ItemModelResolver, ItemTransform, int) - Method in interface dan200.computercraft.api.client.turtle.TurtleUpgradeModel
-
Render this upgrade to an
ItemStackRenderState. - 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
- SelectUpgradeModel<T> - Class in dan200.computercraft.api.client.turtle
-
A
TurtleUpgradeModelwhich selects between different models based on the value of a component in the upgrade's data. - SelectUpgradeModel.Builder<T> - Class in dan200.computercraft.api.client.turtle
-
A builder for constructing
SelectUpgradeModels. - 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.PocketComputer
-
Set the colour of the pocket computer to an 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.
- setupItemLayer(ItemStackRenderState.LayerRenderState) - Method in class dan200.computercraft.api.client.StandaloneModel
-
Set up an
ItemStackRenderState.LayerRenderStateto render this model. - SHORT_WAIT - Enum constant in enum class dan200.computercraft.api.turtle.TurtleAnimation
-
Wait until the animation has finished, performing no movement.
- 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.
- SOURCE - Static variable in interface dan200.computercraft.api.client.turtle.TurtleUpgradeModel
-
The directory from which turtle upgrade models are loaded.
- SPEAKER - Static variable in class dan200.computercraft.api.ComputerCraftBlockIds
- SPEAKER - Static variable in class dan200.computercraft.api.ComputerCraftBlockItemIds
- SPEAKER - Static variable in class dan200.computercraft.api.ComputerCraftItemIds
- StandaloneModel - Class in dan200.computercraft.api.client
-
A standalone model.
- StandaloneModel(List, boolean, Material.Baked, RenderType) - Constructor for class dan200.computercraft.api.client.StandaloneModel
-
Construct a new
StandaloneModel. - state() - Method in record class dan200.computercraft.api.detail.BlockReference
-
Returns the value of the
staterecord component. - submit(PoseStack, SubmitNodeCollector, int, int) - Method in class dan200.computercraft.api.client.StandaloneModel
-
Render the model directly.
- submit(PoseStack, SubmitNodeCollector, int, int, int, ModelFeatureRenderer.CrumblingOverlay) - Method in class dan200.computercraft.api.client.StandaloneModel
-
Render the model directly.
- 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(Identifier, Item) - Static method in class dan200.computercraft.api.turtle.TurtleToolBuilder
- tool(ResourceKey, 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 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.
- 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.
- TREASURE_DISK - Static variable in class dan200.computercraft.api.ComputerCraftItemIds
- 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.BlockItems
-
All turtles.
- 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_ADVANCED - Static variable in class dan200.computercraft.api.ComputerCraftBlockIds
- TURTLE_ADVANCED - Static variable in class dan200.computercraft.api.ComputerCraftBlockItemIds
- TURTLE_ADVANCED - Static variable in class dan200.computercraft.api.ComputerCraftItemIds
- 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_NORMAL - Static variable in class dan200.computercraft.api.ComputerCraftBlockIds
- TURTLE_NORMAL - Static variable in class dan200.computercraft.api.ComputerCraftBlockItemIds
- TURTLE_NORMAL - Static variable in class dan200.computercraft.api.ComputerCraftItemIds
- 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.
- TurtleUpgradeModel - Interface in dan200.computercraft.api.client.turtle
-
The model for a
ITurtleUpgrade. - TurtleUpgradeModel.Unbaked - Interface in dan200.computercraft.api.client.turtle
-
An unbaked turtle model.
- 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. - type() - Method in interface dan200.computercraft.api.client.turtle.TurtleUpgradeModel.Unbaked
-
The
MapCodecused to read/write this unbaked model. - 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
- unbaked() - Static method in class dan200.computercraft.api.client.turtle.ItemUpgradeModel
-
Get the unbaked
ItemUpgradeModel. - unbaked(Identifier, Identifier) - Static method in class dan200.computercraft.api.client.turtle.BasicUpgradeModel
-
Create an unbaked
BasicUpgradeModel. - 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(List, TurtleUpgradeModel.Unbaked) - Method in class dan200.computercraft.api.client.turtle.SelectUpgradeModel.Builder
-
Add a case to our model.
- when(T, TurtleUpgradeModel.Unbaked) - Method in class dan200.computercraft.api.client.turtle.SelectUpgradeModel.Builder
-
Add a case to our model.
- 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.ComputerCraftItemIds
- WIRED_MODEM - Static variable in class dan200.computercraft.api.ComputerCraftTags.BlockItems
-
All modems.
- 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.
- WIRED_MODEM_FULL - Static variable in class dan200.computercraft.api.ComputerCraftBlockIds
- WIRED_MODEM_FULL - Static variable in class dan200.computercraft.api.ComputerCraftBlockItemIds
- WIRED_MODEM_FULL - Static variable in class dan200.computercraft.api.ComputerCraftItemIds
- 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.
- WIRELESS_MODEM_ADVANCED - Static variable in class dan200.computercraft.api.ComputerCraftBlockIds
- WIRELESS_MODEM_ADVANCED - Static variable in class dan200.computercraft.api.ComputerCraftBlockItemIds
- WIRELESS_MODEM_ADVANCED - Static variable in class dan200.computercraft.api.ComputerCraftItemIds
- WIRELESS_MODEM_NORMAL - Static variable in class dan200.computercraft.api.ComputerCraftBlockIds
- WIRELESS_MODEM_NORMAL - Static variable in class dan200.computercraft.api.ComputerCraftBlockItemIds
- WIRELESS_MODEM_NORMAL - Static variable in class dan200.computercraft.api.ComputerCraftItemIds
All Classes and Interfaces|All Packages|Constant Field Values