Class RadioSpeaker
java.lang.Object
com.codinglitch.simpleradio.radio.RadioRouter
com.codinglitch.simpleradio.radio.RadioSpeaker
A type of
Often serves as the end of the audio pipeline.
Does not route further.
RadioRouter that accepts RadioSources and emits them in-world.
Often serves as the end of the audio pipeline.
Does not route further.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.codinglitch.simpleradio.radio.RadioRouter
RadioRouter.Compiled<E> -
Field Summary
FieldsModifier and TypeFieldDescriptionde.maxhenkel.voicechat.api.audiochannel.LocationalAudioChannelde.maxhenkel.voicechat.api.audiochannel.AudioPlayerfloatintFields 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
ConstructorsModifierConstructorDescriptionprotectedRadioSpeaker(WorldlyPosition location) RadioSpeaker(WorldlyPosition location, UUID uuid) protectedRadioSpeaker(UUID id) RadioSpeaker(net.minecraft.world.entity.Entity owner) RadioSpeaker(net.minecraft.world.entity.Entity owner, UUID uuid) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(RadioSource source) short[]short[]get()de.maxhenkel.voicechat.api.opus.OpusDecodergetDecoder(UUID sender) voidvoidsetRange(float range) voidspeak(RadioSource source) voidtick(int tickCount) voidupdateLocation(WorldlyPosition location) Methods inherited from class com.codinglitch.simpleradio.radio.RadioRouter
allowDistribution, compileActivity, distanceTo, getConnectionPosition, getFrequency, getIdentifier, getLocation, getRedstoneMappedActivity, getReference, getRouter, getRouter, getRouterFromReceivers, getRouterFromTransmitters, getWires, informActivity, prepareSource, route, route, shouldRouteTo, toString, tryAddRouter, 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
-
audioChannel
public de.maxhenkel.voicechat.api.audiochannel.LocationalAudioChannel audioChannel -
audioPlayer
public de.maxhenkel.voicechat.api.audiochannel.AudioPlayer audioPlayer -
category
-
range
public float range -
speakingTime
public int speakingTime
-
-
Constructor Details
-
RadioSpeaker
-
RadioSpeaker
protected RadioSpeaker() -
RadioSpeaker
public RadioSpeaker(net.minecraft.world.entity.Entity owner) -
RadioSpeaker
-
RadioSpeaker
-
RadioSpeaker
-
-
Method Details
-
setRange
public void setRange(float range) -
get
public short[] get() -
generatePacket
public short[] generatePacket() -
updateLocation
- Overrides:
updateLocationin classRadioRouter
-
tick
public void tick(int tickCount) - Overrides:
tickin classRadioRouter
-
accept
- Overrides:
acceptin classRadioRouter
-
speak
-
getDecoder
-
invalidate
public void invalidate()- Overrides:
invalidatein classRadioRouter
-