Skip to content

Instantly share code, notes, and snippets.

@Fingercomp
Created Jul 15, 2020
Embed
What would you like to do?
Прямота методов в OC

Непрямые методы

Файл Имя метода Аннотация @Callback
common/component/Screen.scala setTouchModeInverted @Callback(doc = """function(value:boolean):boolean -- Sets whether to invert touch mode (sneak-activate opens GUI, instead of normal activate).""")
common/component/TextBuffer.scala getKeyboards @Callback(doc = """function():table -- The list of keyboards attached to the screen.""")
common/component/TextBuffer.scala setPrecise @Callback(doc = """function(enabled:boolean):boolean -- Set whether to use high precision mode (sub-pixel mouse event positions).""")
common/component/TextBuffer.scala turnOff @Callback(doc = """function():boolean -- Turns off the screen. Returns true if it was on.""")
common/component/TextBuffer.scala turnOn @Callback(doc = """function():boolean -- Turns the screen on. Returns true if it was off.""")
common/tileentity/Assembler.scala start @Callback(doc = """function():boolean -- Start assembling, if possible. Returns whether assembly was started or not.""")
common/tileentity/Assembler.scala status @Callback(doc = """function(): string, number or boolean -- The current state of the assembler, busy' or idle', followed by the progress or template validity, respectively.""")
common/tileentity/DiskDrive.scala eject @Callback(doc = "function([velocity:number]):boolean -- Eject the currently present medium from the drive.")
common/tileentity/DiskDrive.scala isEmpty @Callback(doc = "function():boolean -- Checks whether some medium is currently in the drive.")
common/tileentity/DiskDrive.scala media @Callback(doc = "function(): string -- Return the internal floppy disk address")
common/tileentity/Hologram.scala clear @Callback(doc = """function() -- Clears the hologram.""")
common/tileentity/Hologram.scala copy @Callback(doc = """function(x:number, z:number, sx:number, sz:number, tx:number, tz:number) -- Copies an area of columns by the specified translation.""")
common/tileentity/Hologram.scala getPaletteColor @Callback(doc = """function(index:number):number -- Get the color defined for the specified value.""")
common/tileentity/Hologram.scala setPaletteColor @Callback(doc = """function(index:number, value:number):number -- Set the color defined for the specified value.""")
common/tileentity/Hologram.scala setRaw @Callback(doc = """function(data:string) -- Set the raw buffer to the specified byte array, where each byte represents a voxel color. Nesting is x,z,y.""")
common/tileentity/Hologram.scala setRotation @Callback(doc = """function(angle:number, x:number, y:number, z:number):boolean -- Set the base rotation of the displayed hologram.""")
common/tileentity/Hologram.scala setRotationSpeed @Callback(doc = """function(speed:number, x:number, y:number, z:number):boolean -- Set the rotation speed of the displayed hologram.""")
common/tileentity/Hologram.scala setScale @Callback(doc = """function(value:number) -- Set the render scale. A larger scale consumes more energy.""")
common/tileentity/Hologram.scala setTranslation @Callback(doc = """function(tx:number, ty:number, tz:number) -- Sets the relative render projection offsets of the hologram.""")
common/tileentity/Microcontroller.scala setSideOpen @Callback(doc = """function(side:number, open:boolean):boolean -- Set whether network messages are sent via the specified side.""")
common/tileentity/Microcontroller.scala start @Callback(doc = """function():boolean -- Starts the microcontroller. Returns true if the state changed.""")
common/tileentity/Microcontroller.scala stop @Callback(doc = """function():boolean -- Stops the microcontroller. Returns true if the state changed.""")
common/tileentity/NetSplitter.scala close @Callback(doc = "function(side: number):boolean -- Close the side, returns true if it changed to close.")
common/tileentity/NetSplitter.scala open @Callback(doc = "function(side: number):boolean -- Open the side, returns true if it changed to open.")
common/tileentity/NetSplitter.scala setSides @Callback(doc = "function(settings:table):table -- set open state (true/false) of all sides in an array; index by direction. Returns previous states")
common/tileentity/Printer.scala addShape @Callback(doc = """function(minX:number, minY:number, minZ:number, maxX:number, maxY:number, maxZ:number, texture:string[, state:boolean=false][,tint:number]) -- Adds a shape to the printers configuration, optionally specifying whether it is for the off or on state.""")
common/tileentity/Printer.scala commit @Callback(doc = """function([count:number]):boolean -- Commit and begin printing the current configuration.""")
common/tileentity/Printer.scala getLabel @Callback(doc = """function():string -- Get the current label for the block being printed.""")
common/tileentity/Printer.scala getLightLevel @Callback(doc = """function():number -- Get which light level the printed block should have.""")
common/tileentity/Printer.scala getMaxShapeCount @Callback(doc = """function():number -- Get the maximum allowed number of shapes.""")
common/tileentity/Printer.scala getShapeCount @Callback(doc = """function():number -- Get the number of shapes in the current configuration.""")
common/tileentity/Printer.scala getTooltip @Callback(doc = """function():string -- Get the current tooltip for the block being printed.""")
common/tileentity/Printer.scala isButtonMode @Callback(doc = """function():boolean -- Get whether the printed block should automatically return to its off state.""")
common/tileentity/Printer.scala isCollidable @Callback(doc = """function():boolean, boolean -- Get whether the printed block should be collidable or not.""")
common/tileentity/Printer.scala isRedstoneEmitter @Callback(doc = """function():boolean, number -- Get whether the printed block should emit redstone when in its active state.""")
common/tileentity/Printer.scala reset @Callback(doc = """function() -- Resets the configuration of the printer and stop printing (current job will finish).""")
common/tileentity/Printer.scala setButtonMode @Callback(doc = """function(value:boolean) -- Set whether the printed block should automatically return to its off state.""")
common/tileentity/Printer.scala setCollidable @Callback(doc = """function(collideOff:boolean, collideOn:boolean) -- Set whether the printed block should be collidable or not.""")
common/tileentity/Printer.scala setLabel @Callback(doc = """function(value:string) -- Set a label for the block being printed.""")
common/tileentity/Printer.scala setLightLevel @Callback(doc = """function(value:number) -- Set what light level the printed block should have.""")
common/tileentity/Printer.scala setRedstoneEmitter @Callback(doc = """function(value:boolean or number) -- Set whether the printed block should emit redstone when in its active state.""")
common/tileentity/Printer.scala setTooltip @Callback(doc = """function(value:string) -- Set a tooltip for the block being printed.""")
common/tileentity/Printer.scala status @Callback(doc = """function(): string, number or boolean -- The current state of the printer, busy' or idle', followed by the progress or model validity, respectively.""")
common/tileentity/Relay.scala setRepeater @Callback(doc = """function(enabled:boolean):boolean -- Set whether the access point should act as a repeater.""")
common/tileentity/Relay.scala setStrength @Callback(doc = """function(strength:number):number -- Set the signal strength (range) used when relaying messages.""")
common/tileentity/RobotProxy.scala getName @Callback(doc = "function():string -- Returns the robot name.")
common/tileentity/RobotProxy.scala setName @Callback(doc = "function(name: string):string -- Sets a new name and returns the old name. Robot must not be running")
common/tileentity/RobotProxy.scala start @Callback(doc = """function():boolean -- Starts the robot. Returns true if the state changed.""")
common/tileentity/RobotProxy.scala stop @Callback(doc = """function():boolean -- Stops the robot. Returns true if the state changed.""")
common/tileentity/Waypoint.scala getLabel @Callback(doc = """function(): string -- Get the current label of this waypoint.""")
common/tileentity/Waypoint.scala setLabel @Callback(doc = """function(value:string) -- Set the label for this waypoint.""")
integration/appeng/DriverBlockInterface.scala getInterfaceConfiguration @Callback(doc = "function([slot:number]):table -- Get the configuration of the interface.")
integration/appeng/DriverBlockInterface.scala setInterfaceConfiguration @Callback(doc = "function([slot:number][, database:address, entry:number[, size:number]]):boolean -- Configure the interface.")
integration/appeng/DriverExportBus.scala exportIntoSlot @Callback(doc = "function(side:number, [slot:number]):boolean -- Make the export bus facing the specified direction perform a single export operation into the specified slot.")
integration/appeng/DriverExportBus.scala getExportConfiguration @Callback(doc = "function(side:number, [ slot:number]):boolean -- Get the configuration of the export bus pointing in the specified direction.")
integration/appeng/DriverExportBus.scala setExportConfiguration @Callback(doc = "function(side:number[, slot:number][, database:address, entry:number):boolean -- Configure the export bus pointing in the specified direction to export item stacks matching the specified descriptor.")
integration/appeng/DriverImportBus.scala getImportConfiguration @Callback(doc = "function(side:number[, slot:number]):boolean -- Get the configuration of the import bus pointing in the specified direction.")
integration/appeng/DriverImportBus.scala setImportConfiguration @Callback(doc = "function(side:number[, slot:number][, database:address, entry:number]):boolean -- Configure the import bus pointing in the specified direction to import item stacks matching the specified descriptor.")
integration/appeng/DriverPartInterface.scala getInterfaceConfiguration @Callback(doc = "function(side:number[, slot:number]):table -- Get the configuration of the interface pointing in the specified direction.")
integration/appeng/DriverPartInterface.scala setInterfaceConfiguration @Callback(doc = "function(side:number[, slot:number][, database:address, entry:number[, size:number]]):boolean -- Configure the interface pointing in the specified direction.")
integration/appeng/NetworkControl.scala cancel @Callback(doc = """function():boolean -- Cancels the request. Returns false if the craft cannot be canceled or nil if the link is computing""")
integration/appeng/NetworkControl.scala getAvgPowerInjection @Callback(doc = """function():number -- Get the average power injection into the network.""")
integration/appeng/NetworkControl.scala getAvgPowerUsage @Callback(doc = """function():number -- Get the average power usage of the network.""")
integration/appeng/NetworkControl.scala getCpus @Callback(doc = """function():table -- Get a list of tables representing the available CPUs in the network.""")
integration/appeng/NetworkControl.scala getCraftables @Callback(doc = """function([filter:table]):table -- Get a list of known item recipes. These can be used to issue crafting requests.""")
integration/appeng/NetworkControl.scala getEnergyDemand @Callback(direct = false, doc = """function():number -- Returns the energy demand on the AE network""")
integration/appeng/NetworkControl.scala getFluidsInNetwork @Callback(doc = """function():table -- Get a list of the stored fluids in the network.""")
integration/appeng/NetworkControl.scala getIdlePowerUsage @Callback(doc = """function():number -- Get the idle power usage of the network.""")
integration/appeng/NetworkControl.scala getItemStack @Callback(doc = """function():table -- Returns the item stack representation of the crafting result.""")
integration/appeng/NetworkControl.scala getItemsInNetwork @Callback(doc = """function([filter:table]):table -- Get a list of the stored items in the network.""")
integration/appeng/NetworkControl.scala getMaxStoredPower @Callback(doc = """function():number -- Get the maximum stored power in the network.""")
integration/appeng/NetworkControl.scala getStoredPower @Callback(doc = """function():number -- Get the stored power in the network. """)
integration/appeng/NetworkControl.scala isCanceled @Callback(doc = """function():boolean -- Get whether the crafting request has been canceled.""")
integration/appeng/NetworkControl.scala isDone @Callback(doc = """function():boolean -- Get whether the crafting request is done.""")
integration/appeng/NetworkControl.scala isNetworkPowered @Callback(doc = """function():boolean -- True if the AE network is considered online""")
integration/appeng/NetworkControl.scala request @Callback(doc = """function([amount:int=1, prioritizePower:boolean=true, cpuName:string]):userdata -- Requests item to be crafted, returning an object that allows tracking the crafting status.""")
integration/appeng/NetworkControl.scala requesting @Callback(doc = """function():number -- Returns the number of requests in progress.""")
integration/appeng/NetworkControl.scala store @Callback(doc = """function([filter:table, dbAddress:string, startSlot:number, count:number]): bool -- Store items in the network matching the specified filter in the database with the specified address.""")
integration/ec/NetworkControl.scala getGasesInNetwork @Callback(doc = "function():table -- Get a list of the stored gases in the network.")
integration/enderstorage/DriverFrequencyOwner.java getColors @Callback(doc = "function():table -- Get a table with the mapping of colors (as Minecraft names) to Frequency numbers. NB: Frequencies are zero based!")
integration/enderstorage/DriverFrequencyOwner.java getFrequency @Callback(doc = "function():table -- Get the currently set frequency. {left, middle, right}")
integration/enderstorage/DriverFrequencyOwner.java getFrequencyColors @Callback(doc = "function():table -- Get the currently set frequency as a table of color names.")
integration/enderstorage/DriverFrequencyOwner.java getOwner @Callback(doc = "function():string -- Get the name of the owner, which is usually a player's name or 'global'.")
integration/enderstorage/DriverFrequencyOwner.java setFrequency @Callback(doc = "function(left:number, middle:number, right:number) -- Set the frequency. Range 0-15 (inclusive).")
integration/forestry/DriverAnalyzer.scala getIndividualOnDisplay @Callback(doc = "function():table -- Get info on the currently present bee.")
integration/forestry/DriverAnalyzer.scala getProgress @Callback(doc = "function():double -- Get the progress of the current operation.")
integration/forestry/DriverAnalyzer.scala isWorking @Callback(doc = "function():boolean -- Get whether the analyzer can work.")
integration/forestry/DriverBeeHouse.java canBreed @Callback(doc = "function():boolean -- Can the bees breed?")
integration/forestry/DriverBeeHouse.java getBeeBreedingData @Callback(doc = "function():table -- Get the full breeding list thingy.")
integration/forestry/DriverBeeHouse.java getBeeParents @Callback(doc = "function(beeName:string):table -- Get the parents for a particular mutation")
integration/forestry/DriverBeeHouse.java getDrone @Callback(doc = "function():table -- Get the drone")
integration/forestry/DriverBeeHouse.java getQueen @Callback(doc = "function():table -- Get the queen")
integration/forestry/DriverBeeHouse.java listAllSpecies @Callback(doc = "function():table -- Get all known bees mutations")
integration/ic2/DriverReactor.java getHeat @Callback(doc = "function():number -- Get the reactor's heat.")
integration/ic2/DriverReactor.java getMaxHeat @Callback(doc = "function():number -- Get the reactor's maximum heat before exploding.")
integration/ic2/DriverReactor.java getReactorEUOutput @Callback(doc = "function():number -- Get the reactor's base EU/t value.")
integration/ic2/DriverReactor.java getReactorEnergyOutput @Callback(doc = "function():number -- Get the reactor's energy output. Not multiplied with the base EU/t value.")
integration/ic2/DriverReactor.java producesEnergy @Callback(doc = "function():boolean -- Get whether the reactor is active and supposed to produce energy.")
integration/ic2/DriverReactorChamber.java getHeat @Callback(doc = "function():number -- Get the reactor's heat.")
integration/ic2/DriverReactorChamber.java getMaxHeat @Callback(doc = "function():number -- Get the reactor's maximum heat before exploding.")
integration/ic2/DriverReactorChamber.java getReactorEUOutput @Callback(doc = "function():number -- Get the reactor's base EU/t value.")
integration/ic2/DriverReactorChamber.java getReactorEnergyOutput @Callback(doc = "function():number -- Get the reactor's energy output. Not multiplied with the base EU/t value.")
integration/ic2/DriverReactorChamber.java producesEnergy @Callback(doc = "function():boolean -- Get whether the reactor is active and supposed to produce energy.")
integration/ic2/DriverReactorRedstonePort.java getHeat @Callback(doc = "function():number -- Get the reactor's heat.")
integration/ic2/DriverReactorRedstonePort.java getMaxHeat @Callback(doc = "function():number -- Get the reactor's maximum heat before exploding.")
integration/ic2/DriverReactorRedstonePort.java getReactorEUOutput @Callback(doc = "function():number -- Get the reactor's base EU/t value.")
integration/ic2/DriverReactorRedstonePort.java getReactorEnergyOutput @Callback(doc = "function():number -- Get the reactor's energy output. Not multiplied with the base EU/t value.")
integration/ic2/DriverReactorRedstonePort.java producesEnergy @Callback(doc = "function():boolean -- Get whether the reactor is active and supposed to produce energy.")
integration/minecraft/DriverBeacon.scala getLevels @Callback(doc = "function():number -- Get the number of levels for this beacon.")
integration/minecraft/DriverBeacon.scala getPrimaryEffect @Callback(doc = "function():string -- Get the name of the active primary effect.")
integration/minecraft/DriverBeacon.scala getSecondaryEffect @Callback(doc = "function():string -- Get the name of the active secondary effect.")
integration/minecraft/DriverBrewingStand.scala getBrewTime @Callback(doc = "function():number -- Get the number of ticks remaining of the current brewing operation.")
integration/minecraft/DriverCommandBlock.scala executeCommand @Callback(doc = "function():number -- Execute the currently set command. This has a slight delay to allow the command block to properly update.")
integration/minecraft/DriverCommandBlock.scala setCommand @Callback(doc = "function(value:string) -- Set the specified command for the command block.")
integration/minecraft/DriverComparator.scala getOutputSignal @Callback(doc = "function():number -- Get the strength of the comparators output signal.")
integration/minecraft/DriverFluidHandler.java getTankInfo @Callback(doc = "function():table -- Get some information about the tank accessible from the specified side.")
integration/minecraft/DriverFluidTank.java getInfo @Callback(doc = "function():table -- Get some information about this tank.")
integration/minecraft/DriverFurnace.scala getBurnTime @Callback(doc = "function():number -- The number of ticks that the furnace will keep burning from the last consumed fuel.")
integration/minecraft/DriverFurnace.scala getCookTime @Callback(doc = "function():number -- The number of ticks that the current item has been cooking for.")
integration/minecraft/DriverFurnace.scala getCurrentItemBurnTime @Callback(doc = "function():number -- The number of ticks that the currently burning fuel lasts in total.")
integration/minecraft/DriverFurnace.scala getTotalCookTime @Callback(doc = "function():number -- The number of ticks that the current item needs to cook.")
integration/minecraft/DriverFurnace.scala isBurning @Callback(doc = "function():boolean -- Get whether the furnace is currently active.")
integration/minecraft/DriverInventory.java compareStacks @Callback(doc = "function(slotA:number, slotB:number):boolean -- Compare the two item stacks in the specified slots for equality.")
integration/minecraft/DriverInventory.java getAllStacks @Callback(doc = "function():table -- Get a list of descriptions for all item stacks in this inventory.")
integration/minecraft/DriverInventory.java getInventoryName @Callback(doc = "function():string -- Get the name of this inventory.")
integration/minecraft/DriverInventory.java getInventorySize @Callback(doc = "function():number -- Get the number of slots in this inventory.")
integration/minecraft/DriverInventory.java getSlotMaxStackSize @Callback(doc = "function(slot:number):number -- Get the maximum stack size of the item stack in the specified slot.")
integration/minecraft/DriverInventory.java getSlotStackSize @Callback(doc = "function(slot:number):number -- Get the stack size of the item stack in the specified slot.")
integration/minecraft/DriverInventory.java getStackInSlot @Callback(doc = "function(slot:number):table -- Get a description of the item stack in the specified slot.")
integration/minecraft/DriverInventory.java transferStack @Callback(doc = "function(slotA:number, slotB:number[, count:number=math.huge]):boolean -- Move up to the specified number of items from the first specified slot to the second.")
integration/minecraft/DriverMobSpawner.scala getSpawningMobName @Callback(doc = "function():string -- Get the name of the entity that is being spawned by this spawner.")
integration/minecraft/DriverNoteBlock.scala setPitch @Callback(doc = "function(value:number) -- Set the pitch for this note block. Must be in the interval [1, 25].")
integration/minecraft/DriverNoteBlock.scala trigger @Callback(doc = "function([pitch:number]):boolean -- Triggers the note block if possible. Allows setting the pitch for to save a tick.")
integration/minecraft/DriverRecordPlayer.scala getRecord @Callback(doc = "function():string -- Get the title of the record currently in the jukebox.")
integration/minecraft/DriverRecordPlayer.scala play @Callback(doc = "function() -- Start playing the record currently in the jukebox.")
integration/minecraft/DriverRecordPlayer.scala stop @Callback(doc = "function() -- Stop playing the record currently in the jukebox.")
integration/minecraftforge/DriverEnergyStorage.scala canExtract @Callback(doc = "function():number -- Returns whether this component can have energy extracted from the connected side.")
integration/minecraftforge/DriverEnergyStorage.scala canReceive @Callback(doc = "function():number -- Returns whether this component can receive energy on the connected side.")
integration/minecraftforge/DriverEnergyStorage.scala getEnergyStored @Callback(doc = "function():number -- Returns the amount of stored energy on the connected side.")
integration/minecraftforge/DriverEnergyStorage.scala getMaxEnergyStored @Callback(doc = "function():number -- Returns the maximum amount of stored energy on the connected side.")
server/component/Agent.scala name @Callback(doc = "function():string -- Get the name of the agent.")
server/component/Agent.scala place @Callback(doc = "function(side:number[, face:number=side[, sneaky:boolean=false]]):boolean -- Place a block towards the specified side. The face' allows a more precise click calibration, and is relative to the targeted blockspace.")`
server/component/Agent.scala swing @Callback(doc = "function(side:number[, face:number=side[, sneaky:boolean=false]]):boolean, string -- Perform a 'left click' towards the specified side. The face' allows a more precise click calibration, and is relative to the targeted blockspace.")`
server/component/Agent.scala use @Callback(doc = "function(side:number[, face:number=side[, sneaky:boolean=false[, duration:number=0]]]):boolean, string -- Perform a 'right click' towards the specified side. The face' allows a more precise click calibration, and is relative to the targeted blockspace.")`
server/component/DebugCard.scala addExperienceLevel @Callback(doc = """function(level:number) -- Add a level to the player's experience level""")
server/component/DebugCard.scala addObjective @Callback(doc = """function(objectiveName:string, objectiveCriteria:string) - Create a new objective for the scoreboard""")
server/component/DebugCard.scala addPlayerToTeam @Callback(doc = """function(player:string, team:string):boolean - Add a player to a team""")
server/component/DebugCard.scala addTeam @Callback(doc = """function(team:string) - Add a team to the scoreboard""")
server/component/DebugCard.scala canSeeSky @Callback(doc = """function(x:number, y:number, z:number):number -- Get whether the block at the specified coordinates is directly under the sky.""")
server/component/DebugCard.scala changeBuffer @Callback(doc = """function(value:number):number -- Changes the component network's energy buffer by the specified delta.""")
server/component/DebugCard.scala clearInventory @Callback(doc = """function() -- Clear the players inventory""")
server/component/DebugCard.scala connectToBlock @Callback(doc = """function(x:number, y:number, z:number):boolean -- Add a component block at the specified coordinates to the computer network.""")
server/component/DebugCard.scala decreasePlayerScore @Callback(doc = """function(playerName:string, objectiveName:string, score:int) - Decrease the score of a player for a certain objective""")
server/component/DebugCard.scala getBlockId @Callback(doc = """function(x:number, y:number, z:number):number -- Get the ID of the block at the specified coordinates.""")
server/component/DebugCard.scala getBlockState @Callback(doc = """function(x:number, y:number, z:number[, actualState:boolean=false]) - gets the block state for the block at the specified position, optionally getting additional display related data""")
server/component/DebugCard.scala getDimensionId @Callback(doc = """function():number -- Gets the numeric id of the current dimension.""")
server/component/DebugCard.scala getDimensionName @Callback(doc = """function():string -- Gets the name of the current dimension.""")
server/component/DebugCard.scala getExperienceTotal @Callback(doc = """function():number -- Get the player's total experience""")
server/component/DebugCard.scala getGameType @Callback(doc = """function():string -- Get the player's game type.""")
server/component/DebugCard.scala getHealth @Callback(doc = """function():number -- Get the player's health.""")
server/component/DebugCard.scala getLevel @Callback(doc = """function():number -- Get the player's level""")
server/component/DebugCard.scala getLightOpacity @Callback(doc = """function(x:number, y:number, z:number):number -- Get the light opacity of the block at the specified coordinates.""")
server/component/DebugCard.scala getLightValue @Callback(doc = """function(x:number, y:number, z:number):number -- Get the light value (emission) of the block at the specified coordinates.""")
server/component/DebugCard.scala getMaxHealth @Callback(doc = """function():number -- Get the player's max health.""")
server/component/DebugCard.scala getMetadata @Callback(doc = """function(x:number, y:number, z:number):number -- Get the metadata of the block at the specified coordinates.""")
server/component/DebugCard.scala getPlayer @Callback(doc = """function(name:string):userdata -- Get the entity of a player.""")
server/component/DebugCard.scala getPlayerScore @Callback(doc = """function(playerName:string, objectiveName:string):int - Gets the score of a player for a certain objective""")
server/component/DebugCard.scala getPlayers @Callback(doc = """function():table -- Get a list of currently logged-in players.""")
server/component/DebugCard.scala getPosition @Callback(doc = """function():number, number, number -- Get the player's position.""")
server/component/DebugCard.scala getScoreboard @Callback(doc = """function():userdata -- Get the scoreboard object for the world""")
server/component/DebugCard.scala getSeed @Callback(doc = """function():number -- Gets the seed of the world.""")
server/component/DebugCard.scala getSpawnPoint @Callback(doc = """function():number, number, number -- Get the current spawn point coordinates.""")
server/component/DebugCard.scala getTileNBT @Callback(doc = """function(x:number, y:number, z:number):table -- Get the NBT of the block at the specified coordinates.""")
server/component/DebugCard.scala getTime @Callback(doc = """function():number -- Get the current world time.""")
server/component/DebugCard.scala getWorld @Callback(doc = """function():userdata -- Get the player's world object.""")
server/component/DebugCard.scala getWorld @Callback(doc = """function([id:number]):userdata -- Get the world object for the specified dimension ID, or the container's.""")
server/component/DebugCard.scala getWorlds @Callback(doc = """function():table -- Get a list of all world IDs, loaded and unloaded.""")
server/component/DebugCard.scala getX @Callback(doc = """function():number -- Get the container's X position in the world.""")
server/component/DebugCard.scala getY @Callback(doc = """function():number -- Get the container's Y position in the world.""")
server/component/DebugCard.scala getZ @Callback(doc = """function():number -- Get the container's Z position in the world.""")
server/component/DebugCard.scala hasTileEntity @Callback(doc = """function(x:number, y:number, z:number):number -- Check whether the block at the specified coordinates has a tile entity.""")
server/component/DebugCard.scala increasePlayerScore @Callback(doc = """function(playerName:string, objectiveName:string, score:int) - Increases the score of a player for a certain objective""")
server/component/DebugCard.scala insertFluid @Callback(doc = """function(id:string, amount:number, x:number, y:number, z:number, side:number):boolean - Insert some fluid into the tank at the specified location.""")
server/component/DebugCard.scala insertItem @Callback(doc = """function(id:string, amount:number, meta:number[, nbt:string]):number -- Adds the item stack to the players inventory""")
server/component/DebugCard.scala insertItem @Callback(doc = """function(id:string, count:number, damage:number, nbt:string, x:number, y:number, z:number, side:number):boolean - Insert an item stack into the inventory at the specified location. NBT tag is expected in JSON format.""")
server/component/DebugCard.scala isLoaded @Callback(doc = """function(x:number, y:number, z:number):number -- Check whether the block at the specified coordinates is loaded.""")
server/component/DebugCard.scala isModLoaded @Callback(doc = """function(name:string):boolean -- Get whether a mod or API is loaded.""")
server/component/DebugCard.scala isRaining @Callback(doc = """function():boolean -- Returns whether it is currently raining.""")
server/component/DebugCard.scala isThundering @Callback(doc = """function():boolean -- Returns whether it is currently thundering.""")
server/component/DebugCard.scala playSoundAt @Callback(doc = """function(x:number, y:number, z:number, sound:string, range:number) -- Play a sound at the specified coordinates.""")
server/component/DebugCard.scala removeExperienceLevel @Callback(doc = """function(level:number) -- Remove a level from the player's experience level""")
server/component/DebugCard.scala removeFluid @Callback(doc = """function(amount:number, x:number, y:number, z:number, side:number):boolean - Remove some fluid from a tank at the specified location.""")
server/component/DebugCard.scala removeItem @Callback(doc = """function(x:number, y:number, z:number, slot:number[, count:number]):number - Reduce the size of an item stack in the inventory at the specified location.""")
server/component/DebugCard.scala removeObjective @Callback(doc = """function(objectiveName:string) - Remove an objective from the scoreboard""")
server/component/DebugCard.scala removePlayerFromTeam @Callback(doc = """function(player:string, team:string):boolean - Remove a player from a specific team""")
server/component/DebugCard.scala removePlayerFromTeams @Callback(doc = """function(player:string):boolean - Remove a player from their team""")
server/component/DebugCard.scala removeTeam @Callback(doc = """function(teamName: string) - Remove a team from the scoreboard""")
server/component/DebugCard.scala runCommand @Callback(doc = """function(command:string):number -- Runs an arbitrary command using a fake player.""")
server/component/DebugCard.scala scanContentsAt @Callback(doc = "function(x: number, y: number, z: number[, worldId: number]):boolean, string, table -- returns contents at the location in world by id (default host world)")
server/component/DebugCard.scala sendToClipboard @Callback(doc = """function(player:string, text:string) -- Sends text to the specified player's clipboard if possible.""")
server/component/DebugCard.scala sendToDebugCard @Callback(doc = """function(address:string, data...) -- Sends data to the debug card with the specified address.""")
server/component/DebugCard.scala setBlock @Callback(doc = """function(x:number, y:number, z:number, id:number or string, meta:number):number -- Set the block at the specified coordinates.""")
server/component/DebugCard.scala setBlocks @Callback(doc = """function(x1:number, y1:number, z1:number, x2:number, y2:number, z2:number, id:number or string, meta:number):number -- Set all blocks in the area defined by the two corner points (x1, y1, z1) and (x2, y2, z2).""")
server/component/DebugCard.scala setGameType @Callback(doc = """function(gametype:string) -- Set the player's game type (survival, creative, adventure).""")
server/component/DebugCard.scala setHealth @Callback(doc = """function(health:number) -- Set the player's health.""")
server/component/DebugCard.scala setPlayerScore @Callback(doc = """function(playerName:string, objectiveName:string, score:int) - Sets the score of a player for a certain objective""")
server/component/DebugCard.scala setPosition @Callback(doc = """function(x:number, y:number, z:number) -- Set the player's position.""")
server/component/DebugCard.scala setRaining @Callback(doc = """function(value:boolean) -- Sets whether it is currently raining.""")
server/component/DebugCard.scala setSpawnPoint @Callback(doc = """function(x:number, y:number, z:number) -- Set the spawn point coordinates.""")
server/component/DebugCard.scala setThundering @Callback(doc = """function(value:boolean) -- Sets whether it is currently thundering.""")
server/component/DebugCard.scala setTileNBT @Callback(doc = """function(x:number, y:number, z:number, nbt:table):boolean -- Set the NBT of the block at the specified coordinates.""")
server/component/DebugCard.scala setTime @Callback(doc = """function(value:number) -- Set the current world time.""")
server/component/DebugCard.scala test @Callback(doc = """function():userdata -- Test method for user-data and general value conversion.""")
server/component/DiskDriveMountable.scala eject @Callback(doc = """function([velocity:number]):boolean -- Eject the currently present medium from the drive.""")
server/component/DiskDriveMountable.scala isEmpty @Callback(doc = """function():boolean -- Checks whether some medium is currently in the drive.""")
server/component/Drive.scala setLabel @Callback(doc = """function(value:string):string -- Sets the label of the drive. Returns the new value, which may be truncated.""")
server/component/Drone.scala getAcceleration @Callback(doc = "function():number -- Get the currently set acceleration.")
server/component/Drone.scala getLightColor @Callback(doc = "function():number -- Get the current color of the flap lights as an integer encoded RGB value (0xRRGGBB).")
server/component/Drone.scala getMaxVelocity @Callback(doc = "function():number -- Get the maximum velocity, in m/s.")
server/component/Drone.scala getOffset @Callback(doc = "function():number -- Get the current distance to the target position.")
server/component/Drone.scala getStatusText @Callback(doc = "function():string -- Get the status text currently being displayed in the GUI.")
server/component/Drone.scala getVelocity @Callback(doc = "function():number -- Get the current velocity in m/s.")
server/component/Drone.scala move @Callback(doc = "function(dx:number, dy:number, dz:number) -- Change the target position by the specified offset.")
server/component/Drone.scala setAcceleration @Callback(doc = "function(value:number):number -- Try to set the acceleration to the specified value and return the new acceleration.")
server/component/Drone.scala setLightColor @Callback(doc = "function(value:number):number -- Set the color of the flap lights to the specified integer encoded RGB value (0xRRGGBB).")
server/component/Drone.scala setStatusText @Callback(doc = "function(value:string):string -- Set the status text to display in the GUI, returns new value.")
server/component/EEPROM.scala set @Callback(doc = """function(data:string) -- Overwrite the currently stored byte array.""")
server/component/EEPROM.scala setData @Callback(doc = """function(data:string) -- Overwrite the currently stored byte array.""")
server/component/EEPROM.scala setLabel @Callback(doc = """function(data:string):string -- Set the label of the EEPROM.""")
server/component/FileSystem.scala list @Callback(doc = """function(path:string):table -- Returns a list of names of objects in the directory at the specified absolute path in the file system.""")
server/component/FileSystem.scala makeDirectory @Callback(doc = """function(path:string):boolean -- Creates a directory at the specified absolute path in the file system. Creates parent directories, if necessary.""")
server/component/FileSystem.scala remove @Callback(doc = """function(path:string):boolean -- Removes the object at the specified absolute path in the file system.""")
server/component/FileSystem.scala rename @Callback(doc = """function(from:string, to:string):boolean -- Renames/moves an object from the first specified absolute path in the file system to the second.""")
server/component/FileSystem.scala setLabel @Callback(doc = """function(value:string):string -- Sets the label of the drive. Returns the new value, which may be truncated.""")
server/component/Geolyzer.scala analyze @Callback(doc = """function(side:number[,options:table]):table -- Get some information on a directly adjacent block.""")
server/component/Geolyzer.scala canSeeSky @Callback(doc = """function():boolean -- Returns whether there is a clear line of sight to the sky directly above.""")
server/component/Geolyzer.scala isSunVisible @Callback(doc = """function():boolean -- Return whether the sun is currently visible directly above.""")
server/component/Geolyzer.scala scan `@Callback(doc = """function(x:number, z:number[, y:number, w:number, d:number, h:number][, ignoreReplaceable:boolean
server/component/Geolyzer.scala store @Callback(doc = """function(side:number, dbAddress:string, dbSlot:number):boolean -- Store an item stack representation of the block on the specified side in a database component.""")
server/component/GraphicsCard.scala bind @Callback(doc = """function(address:string[, reset:boolean=true]):boolean -- Binds the GPU to the screen with the specified address and resets screen settings if reset is true.""")
server/component/GraphicsCard.scala setDepth @Callback(doc = """function(depth:number):number -- Set the color depth. Returns the previous value.""")
server/component/GraphicsCard.scala setResolution @Callback(doc = """function(width:number, height:number):boolean -- Set the screen resolution. Returns true if the resolution changed.""")
server/component/GraphicsCard.scala setViewport @Callback(doc = """function(width:number, height:number):boolean -- Set the viewport resolution. Cannot exceed the screen resolution. Returns true if the resolution changed.""")
server/component/InternetCard.scala connect @Callback(doc = """function(address:string[, port:number]):userdata -- Opens a new TCP connection. Returns the handle of the connection.""")
server/component/InternetCard.scala finishConnect @Callback(doc = """function():boolean -- Ensures a response is available. Errors if the connection failed.""")
server/component/InternetCard.scala finishConnect @Callback(doc = """function():boolean -- Ensures a socket is connected. Errors if the connection failed.""")
server/component/InternetCard.scala read @Callback(doc = """function([n:number]):string -- Tries to read data from the response. Returns the read byte array.""")
server/component/InternetCard.scala read @Callback(doc = """function([n:number]):string -- Tries to read data from the socket stream. Returns the read byte array.""")
server/component/InternetCard.scala request @Callback(doc = """function(url:string[, postData:string[, headers:table[, method:string]]]):userdata -- Starts an HTTP request. If this returns true, further results will be pushed using http_response signals.""")
server/component/InternetCard.scala write @Callback(doc = """function(data:string):number -- Tries to write data to the socket stream. Returns the number of bytes written.""")
server/component/LinkedCard.scala send @Callback(doc = """function(data...) -- Sends the specified data to the card this one is linked to.""")
server/component/NetworkCard.scala broadcast @Callback(doc = """function(port:number, data...) -- Broadcasts the specified data on the specified port.""")
server/component/NetworkCard.scala close @Callback(doc = """function([port:number]):boolean -- Closes the specified port (default: all ports). Returns true if ports were closed.""")
server/component/NetworkCard.scala open @Callback(doc = """function(port:number):boolean -- Opens the specified port. Returns true if the port was opened.""")
server/component/NetworkCard.scala send @Callback(doc = """function(address:string, port:number, data...) -- Sends the specified data to the specified target.""")
server/component/RedstoneBundled.scala setBundledOutput @Callback(doc = "function([side:number[, color:number,]] value:number or table):number or table -- Fewer params to assign set of outputs. Returns previous values")
server/component/RedstoneSignaller.scala setWakeThreshold @Callback(doc = """function(threshold:number):number -- Set the wake-up threshold.""")
server/component/RedstoneVanilla.scala setOutput @Callback(doc = "function([side:number, ]value:number or table):number or table -- Set the redstone output (all sides, or optionally on the specified side). Returns previous values")
server/component/RedstoneWireless.scala getWirelessInput @Callback(doc = """function():number -- Get the wireless redstone input.""")
server/component/RedstoneWireless.scala setWirelessFrequency @Callback(doc = """function(frequency:number):number -- Set the wireless redstone frequency to use.""")
server/component/RedstoneWireless.scala setWirelessOutput @Callback(doc = """function(value:boolean):boolean -- Set the wireless redstone output.""")
server/component/Robot.scala durability @Callback(doc = "function():number -- Get the durability of the currently equipped tool.")
server/component/Robot.scala getLightColor @Callback(doc = "function():number -- Get the current color of the activity light as an integer encoded RGB value (0xRRGGBB).")
server/component/Robot.scala move @Callback(doc = "function(direction:number):boolean -- Move in the specified direction.")
server/component/Robot.scala setLightColor @Callback(doc = "function(value:number):number -- Set the color of the activity light to the specified integer encoded RGB value (0xRRGGBB).")
server/component/Robot.scala turn @Callback(doc = "function(clockwise:boolean):boolean -- Rotate in the specified direction.")
server/component/Tablet.scala getPitch @Callback(doc = """function():number -- Gets the pitch of the player holding the tablet.""")
server/component/Tablet.scala getYaw @Callback(doc = """function():number -- Gets the yaw of the player holding the tablet.""")
server/component/Trade.scala getInput @Callback(doc = "function():table, table -- Returns the items the merchant wants for this trade.")
server/component/Trade.scala getMerchantId @Callback(doc = "function():number -- Returns a sort index of the merchant that provides this trade")
server/component/Trade.scala getOutput @Callback(doc = "function():table -- Returns the item the merchant offers for this trade.")
server/component/Trade.scala isEnabled @Callback(doc = "function():boolean -- Returns whether the merchant currently wants to trade this.")
server/component/Trade.scala trade @Callback(doc = "function():boolean, string -- Returns true when trade succeeds and nil, error when not.")
server/component/UpgradeChunkloader.scala isActive @Callback(doc = "function():boolean -- Gets whether the chunkloader is currently active.")
server/component/UpgradeChunkloader.scala setActive @Callback(doc = "function(enabled:boolean):boolean -- Enables or disables the chunkloader, returns true if active changed")
server/component/UpgradeCrafting.scala craft @Callback(doc = """function([count:number]):number -- Tries to craft the specified number of items in the top left area of the inventory.""")
server/component/UpgradeDatabase.scala clear @Callback(doc = "function(slot:number):boolean -- Clears the specified slot. Returns true if there was something in the slot before.")
server/component/UpgradeDatabase.scala clone @Callback(doc = "function(address:string):number -- Copies the data stored in this database to another database with the specified address.")
server/component/UpgradeDatabase.scala computeHash @Callback(doc = "function(slot:number):string -- Computes a hash value for the item stack in the specified slot.")
server/component/UpgradeDatabase.scala copy @Callback(doc = "function(fromSlot:number, toSlot:number[, address:string]):boolean -- Copies an entry to another slot, optionally to another database. Returns true if something was overwritten.")
server/component/UpgradeDatabase.scala get @Callback(doc = "function(slot:number):table -- Get the representation of the item stack stored in the specified slot.")
server/component/UpgradeDatabase.scala indexOf @Callback(doc = "function(hash:string):number -- Get the index of an item stack with the specified hash. Returns a negative value if no such stack was found.")
server/component/UpgradeExperience.scala consume @Callback(doc = """function():boolean -- Tries to consume an enchanted item to add experience to the upgrade.""")
server/component/UpgradeGenerator.scala count @Callback(doc = """function():number -- Get the size of the item stack in the generator's queue.""")
server/component/UpgradeGenerator.scala insert @Callback(doc = """function([count:number]):boolean -- Tries to insert fuel from the selected slot into the generator's queue.""")
server/component/UpgradeGenerator.scala remove @Callback(doc = """function([count:number]):boolean -- Tries to remove items from the generator's queue.""")
server/component/UpgradeInventoryController.scala equip @Callback(doc = """function():boolean -- Swaps the equipped tool with the content of the currently selected inventory slot.""")
server/component/UpgradeLeash.scala leash @Callback(doc = """function(side:number):boolean -- Tries to put an entity on the specified side of the device onto a leash.""")
server/component/UpgradeLeash.scala unleash @Callback(doc = """function() -- Unleashes all currently leashed entities.""")
server/component/UpgradeNavigation.scala findWaypoints @Callback(doc = """function(range:number):table -- Find waypoints in the specified range.""")
server/component/UpgradeNavigation.scala getFacing @Callback(doc = """function():number -- Get the current orientation of the robot.""")
server/component/UpgradeNavigation.scala getPosition @Callback(doc = """function():number, number, number -- Get the current relative position of the robot.""")
server/component/UpgradeNavigation.scala getRange @Callback(doc = """function():number -- Get the operational range of the navigation upgrade.""")
server/component/UpgradePiston.scala isSticky @Callback(doc = """function():boolean -- Returns true if the piston is sticky, i.e. it can also pull.""")
server/component/UpgradePiston.scala pull @Callback(doc = """function([side:number]):boolean -- Tries to reach out to the side given (default front) and pull a block similar to a vanilla sticky piston.""")
server/component/UpgradePiston.scala push @Callback(doc = """function([side:number]):boolean -- Tries to push the block on the specified side of the container of the upgrade. Defaults to front.""")
server/component/UpgradeSignInAdapter.scala getValue @Callback(doc = """function(side:number):string -- Get the text on the sign on the specified side of the adapter.""")
server/component/UpgradeSignInAdapter.scala setValue @Callback(doc = """function(side:number, value:string):string -- Set the text on the sign on the specified side of the adapter.""")
server/component/UpgradeSignInRotatable.scala getValue @Callback(doc = """function():string -- Get the text on the sign in front of the host.""")
server/component/UpgradeSignInRotatable.scala setValue @Callback(doc = """function(value:string):string -- Set the text on the sign in front of the host.""")
server/component/UpgradeTractorBeam.scala suck @Callback(doc = """function():boolean -- Tries to pick up a random item in the robots' vicinity.""")
server/component/UpgradeTrading.scala getTrades @Callback(doc = "function():table -- Returns a table of trades in range as userdata objects.")
server/component/WirelessNetworkCard.scala setStrength @Callback(doc = """function(strength:number):number -- Set the signal strength (range) used when sending messages.""")
server/component/traits/InventoryAnalytics.scala compareToDatabase @Callback(doc = """function(slot:number, dbAddress:string, dbSlot:number[, checkNBT:boolean=false]):boolean -- Compare an item in the specified slot with one in the database with the specified address.""")
server/component/traits/InventoryAnalytics.scala getStackInInternalSlot @Callback(doc = """function([slot:number]):table -- Get a description of the stack in the specified slot or the selected slot.""")
server/component/traits/InventoryAnalytics.scala isEquivalentTo @Callback(doc = """function(otherSlot:number):boolean -- Get whether the stack in the selected slot is equivalent to the item in the specified slot (have shared OreDictionary IDs).""")
server/component/traits/InventoryAnalytics.scala storeInternal @Callback(doc = """function(slot:number, dbAddress:string, dbSlot:number):boolean -- Store an item stack description in the specified slot of the database with the specified address.""")
server/component/traits/InventoryControl.scala compareTo @Callback(doc = "function(otherSlot:number[, checkNBT:boolean=false]):boolean -- Compare the contents of the selected slot to the contents of the specified slot.")
server/component/traits/InventoryControl.scala inventorySize @Callback(doc = "function():number -- The size of this device's internal inventory.")
server/component/traits/InventoryControl.scala select @Callback(doc = "function([slot:number]):number -- Get the currently selected slot; set the selected slot if specified.")
server/component/traits/InventoryControl.scala transferTo @Callback(doc = "function(toSlot:number[, amount:number]):boolean -- Move up to the specified amount of items from the selected slot into the specified slot.")
server/component/traits/InventoryTransfer.scala transferFluid @Callback(doc = """function(sourceSide:number, sinkSide:number[, count:number]):number -- Transfer some items between two inventories.""")
server/component/traits/InventoryTransfer.scala transferItem @Callback(doc = """function(sourceSide:number, sinkSide:number[, count:number[, sourceSlot:number[, sinkSlot:number]]]):boolean -- Transfer some items between two inventories.""")
server/component/traits/InventoryWorldControl.scala compare @Callback(doc = "function(side:number[, fuzzy:boolean=false]):boolean -- Compare the block on the specified side with the one in the selected slot. Returns true if equal.")
server/component/traits/InventoryWorldControl.scala drop @Callback(doc = "function(side:number[, count:number=64]):boolean -- Drops items from the selected slot towards the specified side.")
server/component/traits/InventoryWorldControl.scala suck @Callback(doc = "function(side:number[, count:number=64]):boolean -- Suck up items from the specified side.")
server/component/traits/InventoryWorldControlMk2.scala dropIntoSlot @Callback(doc = """function(facing:number, slot:number[, count:number[, fromSide:number]]):boolean -- Drops the selected item stack into the specified slot of an inventory.""")
server/component/traits/InventoryWorldControlMk2.scala suckFromSlot @Callback(doc = """function(facing:number, slot:number[, count:number[, fromSide:number]]):boolean -- Sucks items from the specified slot of an inventory.""")
server/component/traits/ItemInventoryControl.scala dropIntoItemInventory @Callback(doc = "function(inventorySlot:number, slot:number[, count:number=64]):number -- Drops an item from the selected slot into the specified slot in the item inventory.")
server/component/traits/ItemInventoryControl.scala getItemInventorySize @Callback(doc = "function(slot:number):number -- The size of an item inventory in the specified slot.")
server/component/traits/ItemInventoryControl.scala suckFromItemInventory @Callback(doc = "function(inventorySlot:number, slot:number[, count:number=64]):number -- Sucks an item out of the specified slot in the item inventory.")
server/component/traits/TankControl.scala compareFluidTo @Callback(doc = "function(index:number):boolean -- Compares the fluids in the selected and the specified tank. Returns true if equal.")
server/component/traits/TankControl.scala selectTank @Callback(doc = "function([index:number]):number -- Select a tank and/or get the number of the currently selected tank.")
server/component/traits/TankControl.scala tankCount @Callback(doc = "function():number -- The number of tanks installed in the device.")
server/component/traits/TankControl.scala transferFluidTo @Callback(doc = "function(index:number[, count:number=1000]):boolean -- Move the specified amount of fluid from the selected tank into the specified tank.")
server/component/traits/TankInventoryControl.scala drain @Callback(doc = """function([amount:number]):boolean -- Transfers fluid from a tank in the selected inventory slot to the selected tank.""")
server/component/traits/TankInventoryControl.scala fill @Callback(doc = """function([amount:number]):boolean -- Transfers fluid from the selected tank to a tank in the selected inventory slot.""")
server/component/traits/TankInventoryControl.scala getFluidInInternalTank @Callback(doc = """function([tank:number]):table -- Get a description of the fluid in the tank in the specified slot or the selected slot.""")
server/component/traits/TankInventoryControl.scala getFluidInTankInSlot @Callback(doc = """function([slot:number]):table -- Get a description of the fluid in the tank item in the specified slot or the selected slot.""")
server/component/traits/TankInventoryControl.scala getTankCapacityInSlot @Callback(doc = """function([slot:number]):number -- Get the capacity of the tank item in the specified slot of the robot or the selected slot.""")
server/component/traits/TankInventoryControl.scala getTankLevelInSlot @Callback(doc = """function([slot:number]):number -- Get the amount of fluid in the tank item in the specified slot or the selected slot.""")
server/component/traits/TankWorldControl.scala compareFluid @Callback(doc = "function(side:number [, tank:number]):boolean -- Compare the fluid in the selected tank with the fluid in the specified tank on the specified side. Returns true if equal.")
server/component/traits/TankWorldControl.scala drain @Callback(doc = "function(side:boolean[, amount:number=1000]):boolean, number or string -- Drains the specified amount of fluid from the specified side. Returns the amount drained, or an error message.")
server/component/traits/TankWorldControl.scala fill @Callback(doc = "function(side:number[, amount:number=1000]):boolean, number of string -- Eject the specified amount of fluid to the specified side. Returns the amount ejected or an error message.")
server/component/traits/WakeMessageAware.scala setWakeMessage @Callback(doc = """function(message:string[, fuzzy:boolean]):string -- Set the wake-up message and whether to ignore additional data/parameters.""")
server/component/traits/WorldControl.scala detect @Callback(doc = "function(side:number):boolean, string -- Checks the contents of the block on the specified sides and returns the findings.")
server/component/traits/WorldInventoryAnalytics.scala areStacksEquivalent @Callback(doc = """function(side:number, slotA:number, slotB:number):boolean -- Get whether the items in the two specified slots of the inventory on the specified side of the device are equivalent (have shared OreDictionary IDs).""")
server/component/traits/WorldInventoryAnalytics.scala compareStackToDatabase @Callback(doc = """function(side:number, slot:number, dbAddress:string, dbSlot:number[, checkNBT:boolean=false]):boolean -- Compare an item in the specified slot in the inventory on the specified side with one in the database with the specified address.""")
server/component/traits/WorldInventoryAnalytics.scala compareStacks @Callback(doc = """function(side:number, slotA:number, slotB:number[, checkNBT:boolean=false]):boolean -- Get whether the items in the two specified slots of the inventory on the specified side of the device are of the same type.""")
server/component/traits/WorldInventoryAnalytics.scala getAllStacks @Callback(doc = """function(side:number):userdata -- Get a description of all stacks in the inventory on the specified side of the device.""")
server/component/traits/WorldInventoryAnalytics.scala getInventoryName @Callback(doc = """function(side:number):string -- Get the the name of the inventory on the specified side of the device.""")
server/component/traits/WorldInventoryAnalytics.scala getInventorySize @Callback(doc = """function(side:number):number -- Get the number of slots in the inventory on the specified side of the device.""")
server/component/traits/WorldInventoryAnalytics.scala getSlotMaxStackSize @Callback(doc = """function(side:number, slot:number):number -- Get the maximum number of items in the specified slot of the inventory on the specified side of the device.""")
server/component/traits/WorldInventoryAnalytics.scala getSlotStackSize @Callback(doc = """function(side:number, slot:number):number -- Get number of items in the specified slot of the inventory on the specified side of the device.""")
server/component/traits/WorldInventoryAnalytics.scala getStackInSlot @Callback(doc = """function(side:number, slot:number):table -- Get a description of the stack in the inventory on the specified side of the device.""")
server/component/traits/WorldInventoryAnalytics.scala store @Callback(doc = """function(side:number, slot:number, dbAddress:string, dbSlot:number):boolean -- Store an item stack description in the specified slot of the database with the specified address.""")
server/component/traits/WorldTankAnalytics.scala getFluidInTank @Callback(doc = """function(side:number [, tank:number]):table -- Get a description of the fluid in the the tank on the specified side.""")
server/component/traits/WorldTankAnalytics.scala getTankCapacity @Callback(doc = """function(side:number [, tank:number]):number -- Get the capacity of the tank on the specified side.""")
server/component/traits/WorldTankAnalytics.scala getTankLevel @Callback(doc = """function(side:number [, tank:number]):number -- Get the amount of fluid in the tank on the specified side.""")
server/machine/Machine.scala beep @Callback(doc = """function([frequency:string or number[, duration:number]]) -- Plays a tone, useful to alert users via audible feedback.""")
server/machine/Machine.scala getProgramLocations @Callback(doc = """function():table -- Returns a map of program name to disk label for known programs.""")
server/machine/Machine.scala start @Callback(doc = """function():boolean -- Starts the computer. Returns true if the state changed.""")
server/machine/Machine.scala stop @Callback(doc = """function():boolean -- Stops the computer. Returns true if the state changed.""")

Прямые методы

Файл Имя метода Аннотация @Callback
common/component/Screen.scala isTouchModeInverted @Callback(direct = true, doc = """function():boolean -- Whether touch mode is inverted (sneak-activate opens GUI, instead of normal activate).""")
common/component/TextBuffer.scala getAspectRatio @Callback(direct = true, doc = """function():number, number -- The aspect ratio of the screen. For multi-block screens this is the number of blocks, horizontal and vertical.""")
common/component/TextBuffer.scala isOn @Callback(direct = true, doc = """function():boolean -- Returns whether the screen is currently on.""")
common/component/TextBuffer.scala isPrecise @Callback(direct = true, doc = """function():boolean -- Returns whether the screen is in high precision mode (sub-pixel mouse event positions).""")
common/tileentity/Hologram.scala fill @Callback(direct = true, limit = 128, doc = """function(x:number, z:number[, minY:number], maxY:number, value:number or boolean) -- Fills an interval of a column with the specified value.""")
common/tileentity/Hologram.scala get @Callback(direct = true, doc = """function(x:number, y:number, z:number):number -- Returns the value for the specified voxel.""")
common/tileentity/Hologram.scala getDimensions @Callback(direct = true, doc = "function():number, number, number -- Get the dimension of the x,y,z axes.")
common/tileentity/Hologram.scala getScale @Callback(direct = true, doc = """function():number -- Returns the render scale of the hologram.""")
common/tileentity/Hologram.scala getTranslation @Callback(direct = true, doc = """function():number, number, number -- Returns the relative render projection offsets of the hologram.""")
common/tileentity/Hologram.scala maxDepth @Callback(direct = true, doc = """function():number -- The color depth supported by the hologram.""")
common/tileentity/Hologram.scala set @Callback(direct = true, limit = 256, doc = """function(x:number, y:number, z:number, value:number or boolean) -- Set the value for the specified voxel.""")
common/tileentity/Microcontroller.scala isRunning @Callback(direct = true, doc = """function():boolean -- Returns whether the microcontroller is running.""")
common/tileentity/Microcontroller.scala isSideOpen @Callback(direct = true, doc = """function(side:number):boolean -- Get whether network messages are sent via the specified side.""")
common/tileentity/Microcontroller.scala lastError @Callback(direct = true, doc = """function():string -- Returns the reason the microcontroller crashed, if applicable.""")
common/tileentity/NetSplitter.scala getSides @Callback(direct = true, doc = "function():table -- Returns current open/close state of all sides in an array, indexed by direction.")
common/tileentity/Relay.scala getStrength @Callback(direct = true, doc = """function():number -- Get the signal strength (range) used when relaying messages.""")
common/tileentity/Relay.scala isRepeater @Callback(direct = true, doc = """function():boolean -- Get whether the access point currently acts as a repeater (resend received wireless packets wirelessly).""")
common/tileentity/RobotProxy.scala isRunning @Callback(direct = true, doc = """function():boolean -- Returns whether the robot is running.""")
integration/minecraft/DriverCommandBlock.scala getCommand @Callback(direct = true, doc = "function():string -- Get the command currently set in this command block.")
integration/minecraft/DriverNoteBlock.scala getPitch @Callback(direct = true, doc = "function():number -- Get the currently set pitch on this note block.")
server/component/DataCard.scala crc32 @Callback(direct = true, limit = 32, doc = """function(data:string):string -- Computes CRC-32 hash of the data. Result is binary data.""")
server/component/DataCard.scala decode64 @Callback(direct = true, limit = 32, doc = """function(data:string):string -- Applies base64 decoding to the data.""")
server/component/DataCard.scala decrypt @Callback(direct = true, limit = 8, doc = """function(data:string, key:string, iv:string):string -- Decrypt data with AES.""")
server/component/DataCard.scala deflate @Callback(direct = true, limit = 4, doc = """function(data:string):string -- Applies deflate compression to the data.""")
server/component/DataCard.scala deserializeKey @Callback(direct = true, limit = 8, doc = """function(data:string, type:string):userdata -- Restores key from its string representation.""")
server/component/DataCard.scala ecdh @Callback(direct = true, limit = 1, doc = """function(priv:userdata, pub:userdata):string -- Generates a shared key. ecdh(a.priv, b.pub) == ecdh(b.priv, a.pub)""")
server/component/DataCard.scala ecdsa @Callback(direct = true, limit = 1, doc = """function(data:string, key:userdata[, sig:string]):string or boolean -- Signs or verifies data.""")
server/component/DataCard.scala encode64 @Callback(direct = true, limit = 32, doc = """function(data:string):string -- Applies base64 encoding to the data.""")
server/component/DataCard.scala encrypt @Callback(direct = true, limit = 8, doc = """function(data:string, key: string, iv:string):string -- Encrypt data with AES. Result is binary data.""")
server/component/DataCard.scala generateKeyPair @Callback(direct = true, limit = 1, doc = """function([bitLen:number]):userdata, userdata -- Generates key pair. Returns: public, private keys. Allowed key lengths: 256, 384 bits.""")
server/component/DataCard.scala getLimit @Callback(direct = true, doc = """function():number -- The maximum size of data that can be passed to other functions of the card.""")
server/component/DataCard.scala inflate @Callback(direct = true, limit = 4, doc = """function(data:string):string -- Applies inflate decompression to the data.""")
server/component/DataCard.scala isPublic @Callback(direct = true, doc = "function():boolean -- Returns whether key is public.")
server/component/DataCard.scala keyType @Callback(direct = true, doc = "function():string -- Returns type of key.")
server/component/DataCard.scala md5 @Callback(direct = true, limit = 8, doc = """function(data:string):string -- Computes MD5 hash of the data. Result is binary data.""")
server/component/DataCard.scala md5 @Callback(direct = true, limit = 8, doc = """function(data:string[, hmacKey:string]):string -- Computes MD5 hash of the data. Result is binary data.""")
server/component/DataCard.scala random @Callback(direct = true, limit = 4, doc = """function(len:number):string -- Generates secure random binary data.""")
server/component/DataCard.scala serialize @Callback(direct = true, limit = 4, doc = "function():string -- Returns string representation of key. Result is binary data.")
server/component/DataCard.scala sha256 @Callback(direct = true, limit = 4, doc = """function(data:string):string -- Computes SHA2-256 hash of the data. Result is binary data.""")
server/component/DataCard.scala sha256 @Callback(direct = true, limit = 4, doc = """function(data:string[, hmacKey:string]):string -- Computes SHA2-256 hash of the data. Result is binary data.""")
server/component/Drive.scala getCapacity @Callback(direct = true, doc = """function():number -- Returns the total capacity of the drive, in bytes.""")
server/component/Drive.scala getLabel @Callback(direct = true, doc = """function():string -- Get the current label of the drive.""")
server/component/Drive.scala getPlatterCount @Callback(direct = true, doc = """function():number -- Returns the number of platters in the drive.""")
server/component/Drive.scala getSectorSize @Callback(direct = true, doc = """function():number -- Returns the size of a single sector on the drive, in bytes.""")
server/component/Drive.scala readByte @Callback(direct = true, doc = """function(offset:number):number -- Read a single byte at the specified offset.""")
server/component/Drive.scala readSector @Callback(direct = true, doc = """function(sector:number):string -- Read the current contents of the specified sector.""")
server/component/Drive.scala writeByte @Callback(direct = true, doc = """function(offset:number, value:number) -- Write a single byte to the specified offset.""")
server/component/Drive.scala writeSector @Callback(direct = true, doc = """function(sector:number, value:string) -- Write the specified contents to the specified sector.""")
server/component/EEPROM.scala get @Callback(direct = true, doc = """function():string -- Get the currently stored byte array.""")
server/component/EEPROM.scala getChecksum @Callback(direct = true, doc = """function():string -- Get the checksum of the data on this EEPROM.""")
server/component/EEPROM.scala getData @Callback(direct = true, doc = """function():string -- Get the currently stored byte array.""")
server/component/EEPROM.scala getDataSize @Callback(direct = true, doc = """function():number -- Get the storage capacity of this EEPROM.""")
server/component/EEPROM.scala getLabel @Callback(direct = true, doc = """function():string -- Get the label of the EEPROM.""")
server/component/EEPROM.scala getSize @Callback(direct = true, doc = """function():number -- Get the storage capacity of this EEPROM.""")
server/component/EEPROM.scala makeReadonly @Callback(direct = true, doc = """function(checksum:string):boolean -- Make this EEPROM readonly if it isn't already. This process cannot be reversed!""")
server/component/FileSystem.scala close @Callback(direct = true, doc = """function(handle:userdata) -- Closes an open file descriptor with the specified handle.""")
server/component/FileSystem.scala exists @Callback(direct = true, doc = """function(path:string):boolean -- Returns whether an object exists at the specified absolute path in the file system.""")
server/component/FileSystem.scala getLabel @Callback(direct = true, doc = """function():string -- Get the current label of the drive.""")
server/component/FileSystem.scala isDirectory @Callback(direct = true, doc = """function(path:string):boolean -- Returns whether the object at the specified absolute path in the file system is a directory.""")
server/component/FileSystem.scala isReadOnly @Callback(direct = true, doc = """function():boolean -- Returns whether the file system is read-only.""")
server/component/FileSystem.scala lastModified @Callback(direct = true, doc = """function(path:string):number -- Returns the (real world) timestamp of when the object at the specified absolute path in the file system was modified.""")
server/component/FileSystem.scala open @Callback(direct = true, limit = 4, doc = """function(path:string[, mode:string='r']):userdata -- Opens a new file descriptor and returns its handle.""")
server/component/FileSystem.scala read @Callback(direct = true, limit = 15, doc = """function(handle:userdata, count:number):string or nil -- Reads up to the specified amount of data from an open file descriptor with the specified handle. Returns nil when EOF is reached.""")
server/component/FileSystem.scala seek @Callback(direct = true, doc = """function(handle:userdata, whence:string, offset:number):number -- Seeks in an open file descriptor with the specified handle. Returns the new pointer position.""")
server/component/FileSystem.scala size @Callback(direct = true, doc = """function(path:string):number -- Returns the size of the object at the specified absolute path in the file system.""")
server/component/FileSystem.scala spaceTotal @Callback(direct = true, doc = """function():number -- The overall capacity of the file system, in bytes.""")
server/component/FileSystem.scala spaceUsed @Callback(direct = true, doc = """function():number -- The currently used capacity of the file system, in bytes.""")
server/component/FileSystem.scala write @Callback(direct = true, doc = """function(handle:userdata, value:string):boolean -- Writes the specified data to an open file descriptor with the specified handle.""")
server/component/GraphicsCard.scala allocateBuffer @Callback(direct = true, doc = """function([width: number, height: number]): number -- allocates a new buffer with dimensions width*height (defaults to max resolution) and appends it to the buffer list. Returns the index of the new buffer and returns nil with an error message on failure. A buffer can be allocated even when there is no screen bound to this gpu. Index 0 is always reserved for the screen and thus the lowest index of an allocated buffer is always 1.""")
server/component/GraphicsCard.scala bitblt @Callback(direct = true, doc = """function([dst: number, col: number, row: number, width: number, height: number, src: number, fromCol: number, fromRow: number]):boolean -- bitblt from buffer to screen. All parameters are optional. Writes to dstpage in rectanglex, y, width, height, defaults to the bound screen and its viewport. Reads data from srcpage atfx, fy, default is the active page from position 1, 1""")
server/component/GraphicsCard.scala buffers @Callback(direct = true, doc = """function(): number -- Returns an array of indexes of the allocated buffers""")
server/component/GraphicsCard.scala copy @Callback(direct = true, doc = """function(x:number, y:number, width:number, height:number, tx:number, ty:number):boolean -- Copies a portion of the screen from the specified location with the specified size by the specified translation.""")
server/component/GraphicsCard.scala fill @Callback(direct = true, doc = """function(x:number, y:number, width:number, height:number, char:string):boolean -- Fills a portion of the screen at the specified position with the specified size with the specified character.""")
server/component/GraphicsCard.scala freeAllBuffers @Callback(direct = true, doc = """function(): number -- Closes all buffers and returns the count. If the active buffer is closed, index moves to 0""")
server/component/GraphicsCard.scala freeBuffer @Callback(direct = true, doc = """function(index: number): boolean -- Closes buffer at index. Returns true if a buffer closed. If the current buffer is closed, index moves to 0""")
server/component/GraphicsCard.scala freeMemory @Callback(direct = true, doc = """function(): number -- returns the total free memory not allocated to buffers. This does not include the screen.""")
server/component/GraphicsCard.scala get @Callback(direct = true, doc = """function(x:number, y:number):string, number, number, number or nil, number or nil -- Get the value displayed on the screen at the specified index, as well as the foreground and background color. If the foreground or background is from the palette, returns the palette indices as fourth and fifth results, else nil, respectively.""")
server/component/GraphicsCard.scala getActiveBuffer @Callback(direct = true, doc = """function(): number -- returns the index of the currently selected buffer. 0 is reserved for the screen. Can return 0 even when there is no screen""")
server/component/GraphicsCard.scala getBackground @Callback(direct = true, doc = """function():number, boolean -- Get the current background color and whether it's from the palette or not.""")
server/component/GraphicsCard.scala getBufferSize @Callback(direct = true, doc = """function(index: number): number, number -- returns the buffer size at index. Returns the screen resolution for index 0. returns nil for invalid indexes""")
server/component/GraphicsCard.scala getDepth @Callback(direct = true, doc = """function():number -- Returns the currently set color depth.""")
server/component/GraphicsCard.scala getForeground @Callback(direct = true, doc = """function():number, boolean -- Get the current foreground color and whether it's from the palette or not.""")
server/component/GraphicsCard.scala getPaletteColor @Callback(direct = true, doc = """function(index:number):number -- Get the palette color at the specified palette index.""")
server/component/GraphicsCard.scala getResolution @Callback(direct = true, doc = """function():number, number -- Get the current screen resolution.""")
server/component/GraphicsCard.scala getScreen @Callback(direct = true, doc = """function():string -- Get the address of the screen the GPU is currently bound to.""")
server/component/GraphicsCard.scala getViewport @Callback(direct = true, doc = """function():number, number -- Get the current viewport resolution.""")
server/component/GraphicsCard.scala maxDepth @Callback(direct = true, doc = """function():number -- Get the maximum supported color depth.""")
server/component/GraphicsCard.scala maxResolution @Callback(direct = true, doc = """function():number, number -- Get the maximum screen resolution.""")
server/component/GraphicsCard.scala set @Callback(direct = true, doc = """function(x:number, y:number, value:string[, vertical:boolean]):boolean -- Plots a string value to the screen at the specified position. Optionally writes the string vertically.""")
server/component/GraphicsCard.scala setActiveBuffer @Callback(direct = true, doc = """function(index: number): number -- Sets the active buffer to index. 1 is the first vram buffer and 0 is reserved for the screen. returns nil for invalid index (0 is always valid)""")
server/component/GraphicsCard.scala setBackground @Callback(direct = true, doc = """function(value:number[, palette:boolean]):number, number or nil -- Sets the background color to the specified value. Optionally takes an explicit palette index. Returns the old value and if it was from the palette its palette index.""")
server/component/GraphicsCard.scala setForeground @Callback(direct = true, doc = """function(value:number[, palette:boolean]):number, number or nil -- Sets the foreground color to the specified value. Optionally takes an explicit palette index. Returns the old value and if it was from the palette its palette index.""")
server/component/GraphicsCard.scala setPaletteColor @Callback(direct = true, doc = """function(index:number, color:number):number -- Set the palette color at the specified palette index. Returns the previous value.""")
server/component/GraphicsCard.scala totalMemory @Callback(direct = true, doc = """function(): number -- returns the total memory size of the gpu vram. This does not include the screen.""")
server/component/InternetCard.scala close @Callback(direct = true, doc = """function() -- Closes an open socket stream.""")
server/component/InternetCard.scala close @Callback(direct = true, doc = """function() -- Closes an open socket stream.""")
server/component/InternetCard.scala id @Callback(direct = true, doc = """function():string -- Returns connection ID.""")
server/component/InternetCard.scala isHttpEnabled @Callback(direct = true, doc = """function():boolean -- Returns whether HTTP requests can be made (config setting).""")
server/component/InternetCard.scala isTcpEnabled @Callback(direct = true, doc = """function():boolean -- Returns whether TCP connections can be made (config setting).""")
server/component/InternetCard.scala response @Callback(direct = true, doc = """function():number, string, table -- Get response code, message and headers.""")
server/component/LinkedCard.scala getChannel @Callback(direct = true, doc = "function():string -- Gets this link card's shared channel address")
server/component/LinkedCard.scala maxPacketSize @Callback(direct = true, doc = "function():number -- Gets the maximum packet size (config setting).")
server/component/MotionSensor.scala getSensitivity @Callback(direct = true, doc = """function():number -- Gets the current sensor sensitivity.""")
server/component/MotionSensor.scala setSensitivity @Callback(direct = true, doc = """function(value:number):number -- Sets the sensor's sensitivity. Returns the old value.""")
server/component/NetworkCard.scala isOpen @Callback(direct = true, doc = """function(port:number):boolean -- Whether the specified port is open.""")
server/component/NetworkCard.scala isWired @Callback(direct = true, doc = """function():boolean -- Whether this card has wired networking capability.""")
server/component/NetworkCard.scala isWireless @Callback(direct = true, doc = """function():boolean -- Whether this card has wireless networking capability.""")
server/component/RedstoneBundled.scala getBundledInput @Callback(direct = true, doc = "function([side:number[, color:number]]):number or table -- Fewer params returns set of inputs")
server/component/RedstoneBundled.scala getBundledOutput @Callback(direct = true, doc = "function([side:number[, color:number]]):number or table -- Fewer params returns set of outputs")
server/component/RedstoneSignaller.scala getWakeThreshold @Callback(direct = true, doc = """function():number -- Get the current wake-up threshold.""")
server/component/RedstoneVanilla.scala getComparatorInput @Callback(direct = true, doc = "function(side:number):number -- Get the comparator input on the specified side.")
server/component/RedstoneVanilla.scala getInput @Callback(direct = true, doc = "function([side:number]):number or table -- Get the redstone input (all sides, or optionally on the specified side)")
server/component/RedstoneVanilla.scala getOutput @Callback(direct = true, doc = "function([side:number]):number or table -- Get the redstone output (all sides, or optionally on the specified side)")
server/component/RedstoneWireless.scala getWirelessFrequency @Callback(direct = true, doc = """function():number -- Get the currently set wireless redstone frequency.""")
server/component/RedstoneWireless.scala getWirelessOutput @Callback(direct = true, doc = """function():boolean -- Get the wireless redstone output.""")
server/component/UpgradeExperience.scala level @Callback(direct = true, doc = """function():number -- The current level of experience stored in this experience upgrade.""")
server/component/WirelessNetworkCard.scala getStrength @Callback(direct = true, doc = """function():number -- Get the signal strength (range) used when sending messages.""")
server/component/traits/InventoryControl.scala count @Callback(direct = true, doc = "function([slot:number]):number -- Get the number of items in the specified slot, otherwise in the selected slot.")
server/component/traits/InventoryControl.scala space @Callback(direct = true, doc = "function([slot:number]):number -- Get the remaining space in the specified slot, otherwise in the selected slot.")
server/component/traits/TankControl.scala tankLevel @Callback(direct = true, doc = "function([index:number]):number -- Get the fluid amount in the specified or selected tank.")
server/component/traits/TankControl.scala tankSpace @Callback(direct = true, doc = "function([index:number]):number -- Get the remaining fluid capacity in the specified or selected tank.")
server/component/traits/WakeMessageAware.scala getWakeMessage @Callback(direct = true, doc = """function():string, boolean -- Get the current wake-up message.""")
server/machine/Machine.scala getDeviceInfo @Callback(direct = true, doc = """function():table -- Collect information on all connected devices.""")
server/machine/Machine.scala isRunning @Callback(direct = true, doc = """function():boolean -- Returns whether the computer is running.""")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment