mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-02-13 17:40:05 +00:00
Fix a few typos in the documentation
- Move modem recipes out of the usage section. - Add missing argument names to BinaryWriableHandle.write. Illuaminate really should catch this, but for now I did a grep and couldn't find any more instances of this.
This commit is contained in:
parent
fb4b097a66
commit
3224e0bf8b
@ -52,6 +52,15 @@ import java.util.Set;
|
||||
* <li><strong>Wired modems:</strong> These send messages to other any other wired modems connected to the same network
|
||||
* (using <em>Networking Cable</em>). They also can be used to attach additional peripherals to a computer.</li></ul>
|
||||
*
|
||||
* ## Recipes
|
||||
* <div class="recipe-container">
|
||||
* <mc-recipe recipe="computercraft:wireless_modem_normal"></mc-recipe>
|
||||
* <mc-recipe recipe="computercraft:wireless_modem_advanced"></mc-recipe>
|
||||
* <mc-recipe recipe="computercraft:wired_modem"></mc-recipe>
|
||||
* <mc-recipe recipe="computercraft:cable"></mc-recipe>
|
||||
* <mc-recipe recipe="computercraft:wired_modem_full_from"></mc-recipe>
|
||||
* </div>
|
||||
*
|
||||
* @cc.module modem
|
||||
* @cc.see modem_message Queued when a modem receives a message on an {@link #open(int) open channel}.
|
||||
* @cc.see rednet A networking API built on top of the modem peripheral.
|
||||
@ -74,14 +83,6 @@ import java.util.Set;
|
||||
* print("Received a reply: " .. tostring(message))
|
||||
* }</pre>
|
||||
* <p>
|
||||
* ## Recipes
|
||||
* <div class="recipe-container">
|
||||
* <mc-recipe recipe="computercraft:wireless_modem_normal"></mc-recipe>
|
||||
* <mc-recipe recipe="computercraft:wireless_modem_advanced"></mc-recipe>
|
||||
* <mc-recipe recipe="computercraft:wired_modem"></mc-recipe>
|
||||
* <mc-recipe recipe="computercraft:cable"></mc-recipe>
|
||||
* <mc-recipe recipe="computercraft:wired_modem_full_from"></mc-recipe>
|
||||
* </div>
|
||||
*/
|
||||
public abstract class ModemPeripheral implements IPeripheral, PacketSender, PacketReceiver {
|
||||
private @Nullable PacketNetwork network;
|
||||
|
@ -42,8 +42,8 @@ public class BinaryWritableHandle extends HandleGeneric {
|
||||
*
|
||||
* @param arguments The value to write.
|
||||
* @throws LuaException If the file has been closed.
|
||||
* @cc.tparam [1] number The byte to write.
|
||||
* @cc.tparam [2] string The string to write.
|
||||
* @cc.tparam [1] number charcode The byte to write.
|
||||
* @cc.tparam [2] string contents The string to write.
|
||||
* @cc.changed 1.80pr1 Now accepts a string to write multiple bytes.
|
||||
*/
|
||||
@LuaFunction
|
||||
|
Loading…
x
Reference in New Issue
Block a user