java.lang.Object
dan200.computercraft.shared.peripheral.modem.ModemPeripheral
me.alexdevs.classicPeripherals.peripherals.ban.BanModem
All Implemented Interfaces:
dan200.computercraft.api.lua.ILuaAPI, dan200.computercraft.api.network.PacketReceiver, dan200.computercraft.api.network.PacketSender, dan200.computercraft.api.peripheral.IPeripheral

public class BanModem extends dan200.computercraft.shared.peripheral.modem.ModemPeripheral implements dan200.computercraft.api.lua.ILuaAPI
  • Constructor Summary

    Constructors
    Constructor
    Description
    BanModem(dan200.computercraft.api.lua.IComputerSystem computer)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected dan200.computercraft.api.network.PacketNetwork
     
    boolean
    equals(@Nullable dan200.computercraft.api.peripheral.IPeripheral o)
     
    @Nullable net.minecraft.world.entity.Entity
     
    net.minecraft.world.level.Level
     
     
    String @NonNull []
     
    protected @NonNull dan200.computercraft.api.network.PacketNetwork
     
    net.minecraft.world.phys.Vec3
     
    double
     
    boolean
     
    void
     
    void
     

    Methods inherited from class dan200.computercraft.shared.peripheral.modem.ModemPeripheral

    attach, close, closeAll, detach, getModemState, getSenderID, getType, isOpen, isWireless, open, receiveDifferentDimension, receiveSameDimension, removed, transmit

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface dan200.computercraft.api.lua.ILuaAPI

    startup

    Methods inherited from interface dan200.computercraft.api.peripheral.IPeripheral

    getAdditionalTypes, getTarget
  • Constructor Details

    • BanModem

      public BanModem(dan200.computercraft.api.lua.IComputerSystem computer)
  • Method Details

    • getEntity

      public @Nullable net.minecraft.world.entity.Entity getEntity()
    • createLocalNetwork

      protected dan200.computercraft.api.network.PacketNetwork createLocalNetwork()
    • getNames

      public String @NonNull [] getNames()
      Specified by:
      getNames in interface dan200.computercraft.api.lua.ILuaAPI
    • getModuleName

      public String getModuleName()
      Specified by:
      getModuleName in interface dan200.computercraft.api.lua.ILuaAPI
    • update

      public void update()
      Specified by:
      update in interface dan200.computercraft.api.lua.ILuaAPI
    • shutdown

      public void shutdown()
      Specified by:
      shutdown in interface dan200.computercraft.api.lua.ILuaAPI
    • getNetwork

      protected @NonNull dan200.computercraft.api.network.PacketNetwork getNetwork()
      Specified by:
      getNetwork in class dan200.computercraft.shared.peripheral.modem.ModemPeripheral
    • getRange

      public double getRange()
      Specified by:
      getRange in interface dan200.computercraft.api.network.PacketReceiver
    • isInterdimensional

      public boolean isInterdimensional()
      Specified by:
      isInterdimensional in interface dan200.computercraft.api.network.PacketReceiver
    • getLevel

      public net.minecraft.world.level.Level getLevel()
      Specified by:
      getLevel in interface dan200.computercraft.api.network.PacketReceiver
      Specified by:
      getLevel in interface dan200.computercraft.api.network.PacketSender
    • getPosition

      public net.minecraft.world.phys.Vec3 getPosition()
      Specified by:
      getPosition in interface dan200.computercraft.api.network.PacketReceiver
      Specified by:
      getPosition in interface dan200.computercraft.api.network.PacketSender
    • equals

      public boolean equals(@Nullable dan200.computercraft.api.peripheral.IPeripheral o)
      Specified by:
      equals in interface dan200.computercraft.api.peripheral.IPeripheral