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, oldPosition, owner, position, 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 TypeMethodDescriptionshort[]short[]get()de.maxhenkel.voicechat.api.opus.OpusDecodergetDecoder(UUID sender) floatgetRange()intvoidvoidsetCategory(String category) voidsetRange(float range) voidvoidvoidtick(int tickCount) voidupdateLocation(WorldlyPosition location) Methods inherited from class com.codinglitch.simpleradio.radio.RadioRouter
accept, addRouter, allowDistribution, compileActivity, distanceTo, distanceTo, getActivity, getActivityTime, getConnectionOffset, getConnectionPosition, getEncoder, getFrequency, getIdentifier, getLink, getLocation, getOwner, getPosition, getRedstoneMappedActivity, getReference, getRotation, getRouter, getRouter, getRouterFromReceivers, getRouterFromTransmitters, getRouters, getVelocity, getWires, informActivity, 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, toString, tryAddRouter, 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.routers.Router
accept, addRouter, allowDistribution, distanceTo, getActivity, getActivityTime, getConnectionOffset, getConnectionPosition, getFrequency, getIdentifier, getLink, getLocation, getOwner, getPosition, getRedstoneMappedActivity, getReference, getRotation, getRouter, getRouters, getVelocity, getWires, 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
-
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
-
getRange
public float getRange() -
setRange
public void setRange(float range) -
getCategory
- Specified by:
getCategoryin interfaceSpeaker
-
setCategory
- Specified by:
setCategoryin interfaceSpeaker
-
getSpeakingTime
public int getSpeakingTime()- Specified by:
getSpeakingTimein interfaceSpeaker
-
get
public short[] get() -
generatePacket
public short[] generatePacket() -
updateLocation
- Overrides:
updateLocationin classRadioRouter
-
tick
public void tick(int tickCount) - Overrides:
tickin classRadioRouter
-
take
- Overrides:
takein classRadioRouter
-
speak
-
getDecoder
- Overrides:
getDecoderin classRadioRouter
-
invalidate
public void invalidate()- Specified by:
invalidatein interfaceRouter- Overrides:
invalidatein classRadioRouter
-