Class BanModem
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 -
Method Summary
Modifier and TypeMethodDescriptionprotected dan200.computercraft.api.network.PacketNetworkbooleanequals(@Nullable dan200.computercraft.api.peripheral.IPeripheral o) @Nullable net.minecraft.world.entity.Entitynet.minecraft.world.level.LevelgetLevel()String @NonNull []getNames()protected @NonNull dan200.computercraft.api.network.PacketNetworknet.minecraft.world.phys.Vec3doublegetRange()booleanvoidshutdown()voidupdate()Methods inherited from class dan200.computercraft.shared.peripheral.modem.ModemPeripheral
attach, close, closeAll, detach, getModemState, getSenderID, getType, isOpen, isWireless, open, receiveDifferentDimension, receiveSameDimension, removed, transmitMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dan200.computercraft.api.lua.ILuaAPI
startupMethods 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
- Specified by:
getNamesin interfacedan200.computercraft.api.lua.ILuaAPI
-
getModuleName
- Specified by:
getModuleNamein interfacedan200.computercraft.api.lua.ILuaAPI
-
update
public void update()- Specified by:
updatein interfacedan200.computercraft.api.lua.ILuaAPI
-
shutdown
public void shutdown()- Specified by:
shutdownin interfacedan200.computercraft.api.lua.ILuaAPI
-
getNetwork
protected @NonNull dan200.computercraft.api.network.PacketNetwork getNetwork()- Specified by:
getNetworkin classdan200.computercraft.shared.peripheral.modem.ModemPeripheral
-
getRange
public double getRange()- Specified by:
getRangein interfacedan200.computercraft.api.network.PacketReceiver
-
isInterdimensional
public boolean isInterdimensional()- Specified by:
isInterdimensionalin interfacedan200.computercraft.api.network.PacketReceiver
-
getLevel
public net.minecraft.world.level.Level getLevel()- Specified by:
getLevelin interfacedan200.computercraft.api.network.PacketReceiver- Specified by:
getLevelin interfacedan200.computercraft.api.network.PacketSender
-
getPosition
public net.minecraft.world.phys.Vec3 getPosition()- Specified by:
getPositionin interfacedan200.computercraft.api.network.PacketReceiver- Specified by:
getPositionin interfacedan200.computercraft.api.network.PacketSender
-
equals
public boolean equals(@Nullable dan200.computercraft.api.peripheral.IPeripheral o) - Specified by:
equalsin interfacedan200.computercraft.api.peripheral.IPeripheral
-