Class RadioListener
java.lang.Object
com.codinglitch.simpleradio.radio.RadioRouter
com.codinglitch.simpleradio.radio.RadioListener
- All Implemented Interfaces:
Socket
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, location, oldPosition, owner, 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 TypeMethodDescriptionde.maxhenkel.voicechat.api.opus.OpusDecodergetDecoder(UUID sender) voidonData(byte[] data) voidonSource(RadioSource source) voidsetRange(float range) voidtick(int tickCount) voidtransformer(UnaryOperator<RadioSource> transformer) voidMethods inherited from class com.codinglitch.simpleradio.radio.RadioRouter
accept, allowDistribution, compileActivity, distanceTo, getConnectionPosition, getFrequency, getIdentifier, getLocation, getRedstoneMappedActivity, getReference, getRouter, getRouter, getRouterFromReceivers, getRouterFromTransmitters, getWires, informActivity, invalidate, prepareSource, route, route, shouldRouteTo, toString, 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.api.central.Socket
canConnect, canConnectTo, connect, disconnect, disconnect, distribute, hasWire, hasWire, shortCircuit
-
Field Details
-
range
public float range -
lastHeader
public long lastHeader -
compiledData
public byte[] compiledData
-
-
Constructor Details
-
RadioListener
-
RadioListener
protected RadioListener() -
RadioListener
public RadioListener(net.minecraft.world.entity.Entity owner) -
RadioListener
-
RadioListener
-
RadioListener
-
-
Method Details
-
setRange
public void setRange(float range) -
tryRouteHeader
public void tryRouteHeader() -
transformer
-
getDecoder
-
onData
public void onData(byte[] data) -
onSource
-
tick
public void tick(int tickCount) - Overrides:
tickin classRadioRouter
-