Class RadioListener
java.lang.Object
com.codinglitch.simpleradio.radio.RadioRouter
com.codinglitch.simpleradio.radio.RadioListener
A type of
Often serves as the beginning of the audio pipeline.
Does route further.
RadioRouter that accepts RadioSources.
Often serves as the beginning of the audio pipeline.
Does route further.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.codinglitch.simpleradio.radio.RadioRouter
RadioRouter.Compiled<E> -
Field Summary
FieldsFields inherited from class com.codinglitch.simpleradio.radio.RadioRouter
acceptCriteria, active, activity, activityTime, compiledActivity, compiledSamples, connectionOffset, distributes, identifier, link, oldPosition, owner, position, reference, rotation, routeCriteria, routerAcceptor, routers, valid, velocity, wires -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRadioListener(WorldlyPosition location) RadioListener(WorldlyPosition location, UUID uuid) protectedRadioListener(UUID reference) RadioListener(net.minecraft.world.entity.Entity owner) RadioListener(net.minecraft.world.entity.Entity owner, UUID uuid) -
Method Summary
Modifier and TypeMethodDescriptionfloatgetRange()voidvoidonData(byte[] data) voidsetRange(float range) voidtick(int tickCount) voidtransformer(UnaryOperator<Source> transformer) Methods inherited from class com.codinglitch.simpleradio.radio.RadioRouter
accept, addRouter, allowDistribution, compileActivity, distanceTo, distanceTo, getActivity, getActivityTime, getConnectionOffset, getConnectionPosition, getDecoder, getEncoder, getFrequency, getIdentifier, getLink, getLocation, getOwner, getPosition, getRedstoneMappedActivity, getReference, getRotation, getRouter, getRouter, getRouterFromReceivers, getRouterFromTransmitters, getRouters, getVelocity, getWires, informActivity, invalidate, isActive, isClientSide, isValid, prepareSource, route, route, send, send, send, send, send, send, send, send, send, send, setAcceptingCriteria, setActive, setConnectionOffset, setLink, setOwner, setPosition, setRotation, setRoutingCriteria, shouldRouteTo, take, toString, tryAddRouter, tryAddRouter, updateLocation, updateRotation, validateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.codinglitch.simpleradio.routers.Router
accept, addRouter, allowDistribution, distanceTo, getActivity, getActivityTime, getConnectionOffset, getConnectionPosition, getFrequency, getIdentifier, getLink, getLocation, getOwner, getPosition, getRedstoneMappedActivity, getReference, getRotation, getRouter, getRouters, getVelocity, getWires, invalidate, isActive, isClientSide, isValid, route, send, send, send, send, send, send, send, send, send, send, setAcceptingCriteria, setActive, setConnectionOffset, setLink, setOwner, setPosition, setRotation, setRoutingCriteria, tryAddRouter, validateMethods inherited from interface com.codinglitch.simpleradio.central.Socket
canConnect, canConnectTo, connect, disconnect, disconnect, distribute, hasWire, hasWire, shortCircuit
-
Field Details
-
range
public float range -
compiledData
public byte[] compiledData
-
-
Constructor Details
-
RadioListener
-
RadioListener
protected RadioListener() -
RadioListener
public RadioListener(net.minecraft.world.entity.Entity owner) -
RadioListener
-
RadioListener
-
RadioListener
-
-
Method Details
-
getRange
public float getRange() -
setRange
public void setRange(float range) -
transformer
- Specified by:
transformerin interfaceListener
-
onData
public void onData(byte[] data) -
listen
-
tick
public void tick(int tickCount) - Overrides:
tickin classRadioRouter
-