Class PocketRadio.RadioPocketPeripheral
java.lang.Object
me.alexdevs.classicPeripherals.peripherals.radio.AbstractRadioPeripheral
me.alexdevs.classicPeripherals.peripherals.radio.upgrades.PocketRadio.RadioPocketPeripheral
- All Implemented Interfaces:
dan200.computercraft.api.peripheral.IPeripheral
- Enclosing class:
PocketRadio
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class me.alexdevs.classicPeripherals.peripherals.radio.AbstractRadioPeripheral
attach, detach, flipString, getChannel, getHeight, getType, LuaBroadcast, LuaCanBroadcast, LuaGetFrequency, LuaGetHeight, LuaIsValid, LuaSetFrequency, receive, setChannelMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dan200.computercraft.api.peripheral.IPeripheral
getAdditionalTypes, getTarget
-
Constructor Details
-
RadioPocketPeripheral
public RadioPocketPeripheral(dan200.computercraft.api.pocket.IPocketAccess pocket)
-
-
Method Details
-
isValid
public boolean isValid()- Specified by:
isValidin classAbstractRadioPeripheral
-
getLevel
public net.minecraft.world.level.Level getLevel()- Specified by:
getLevelin classAbstractRadioPeripheral
-
getPosition
public net.minecraft.world.phys.Vec3 getPosition()- Specified by:
getPositionin classAbstractRadioPeripheral
-
getRange
public double getRange()- Specified by:
getRangein classAbstractRadioPeripheral
-
ping
public void ping()- Specified by:
pingin classAbstractRadioPeripheral
-
canBroadcast
public boolean canBroadcast()- Specified by:
canBroadcastin classAbstractRadioPeripheral
-
equals
public boolean equals(@Nullable dan200.computercraft.api.peripheral.IPeripheral other)
-