Class SoundKeyframe
-
- All Implemented Interfaces:
public final class SoundKeyframe extends Keyframe<SoundKeyframe>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
SoundKeyframe.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Codec<SoundKeyframe>
codec
private final Integer
time
private final Integer
duration
private final Holder<SoundEvent>
sound
private final Float
volume
private final Float
pitch
private Integer
ticksSinceStart
private final Float
progress
public final static SoundKeyframe.Companion
Companion
-
Constructor Summary
Constructors Constructor Description SoundKeyframe(Integer time, Integer duration, SoundEvent sound, Float volume, Float pitch)
SoundKeyframe(Integer time, Integer duration, Holder<SoundEvent> sound, Float volume, Float pitch)
-
Method Summary
Modifier and Type Method Description Codec<SoundKeyframe>
getCodec()
Integer
getTime()
Integer
getDuration()
final Holder<SoundEvent>
getSound()
final Float
getVolume()
final Float
getPitch()
Unit
onClientTick(Minecraft mc, FreeCamera cam)
Unit
onServerTick(MinecraftServer server)
-
Methods inherited from class dev.wendigodrip.thebrokenscript.api.client.cutscene.keyframes.Keyframe
getProgress, getTicksSinceStart, setTicksSinceStart, tickClient, tickServer
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getCodec
Codec<SoundKeyframe> getCodec()
-
getDuration
Integer getDuration()
-
getSound
final Holder<SoundEvent> getSound()
-
onClientTick
Unit onClientTick(Minecraft mc, FreeCamera cam)
-
onServerTick
Unit onServerTick(MinecraftServer server)
-
-
-
-