Class CutsceneManager

java.lang.Object
net.ixdarklord.coolcatcanvas.internal.client.cutscene.CutsceneManager

public final class CutsceneManager extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static @Nullable CameraPose
    camera(float partialTick, net.minecraft.world.phys.Vec3 position, float yaw, float pitch)
    Where the camera goes this frame, given where the game put it; null to leave it there.
    static @Nullable CutscenePlayback
     
    static @Nullable PlaybackImpl
    The playback on screen, a preview of the editor's included.
    static float
    fov(float vanilla)
    The field of view this frame, given the game's own.
    static @Nullable Cutscene
    get(net.minecraft.resources.Identifier id)
     
    static void
    The server asking for a cutscene, or for the one playing to stop.
    static boolean
    Whether a cutscene has the camera this frame: the hand, the crosshair's block outline and the like go.
    static Set<net.minecraft.resources.Identifier>
    ids()
     
    static void
     
    static boolean
     
    static @Nullable CutscenePlayback
    play(@Nullable net.minecraft.resources.Identifier id, Cutscene cutscene, @Nullable net.minecraft.world.phys.Vec3 origin, float yaw, boolean fromServer)
     
    static @Nullable CutscenePlayback
    play(net.minecraft.resources.Identifier id, @Nullable net.minecraft.world.phys.Vec3 origin, float yaw, boolean fromServer)
     
    preview(Cutscene cutscene, net.minecraft.world.phys.Vec3 origin, float yaw, float time)
    The editor's preview: a playback that starts held on a frame, fires no start or end, and locks nothing.
    static void
    register(net.minecraft.resources.Identifier id, Cutscene cutscene)
     
    static void
    reload(net.minecraft.server.packs.resources.ResourceManager manager)
    Reads assets//cutscene/.json from every pack; a file that fails is logged and skipped.
    static void
    unregister(net.minecraft.resources.Identifier id)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • init

      public static void init()
    • register

      public static void register(net.minecraft.resources.Identifier id, Cutscene cutscene)
    • unregister

      public static void unregister(net.minecraft.resources.Identifier id)
    • get

      public static @Nullable Cutscene get(net.minecraft.resources.Identifier id)
    • ids

      public static Set<net.minecraft.resources.Identifier> ids()
    • reload

      public static void reload(net.minecraft.server.packs.resources.ResourceManager manager)
      Reads assets//cutscene/.json from every pack; a file that fails is logged and skipped.
    • current

      public static @Nullable CutscenePlayback current()
    • currentImpl

      public static @Nullable PlaybackImpl currentImpl()
      The playback on screen, a preview of the editor's included.
    • play

      public static @Nullable CutscenePlayback play(net.minecraft.resources.Identifier id, @Nullable net.minecraft.world.phys.Vec3 origin, float yaw, boolean fromServer)
    • play

      public static @Nullable CutscenePlayback play(@Nullable net.minecraft.resources.Identifier id, Cutscene cutscene, @Nullable net.minecraft.world.phys.Vec3 origin, float yaw, boolean fromServer)
    • preview

      public static PlaybackImpl preview(Cutscene cutscene, net.minecraft.world.phys.Vec3 origin, float yaw, float time)
      The editor's preview: a playback that starts held on a frame, fires no start or end, and locks nothing.
    • handle

      public static void handle(CutscenePayload payload)
      The server asking for a cutscene, or for the one playing to stop.
    • camera

      public static @Nullable CameraPose camera(float partialTick, net.minecraft.world.phys.Vec3 position, float yaw, float pitch)
      Where the camera goes this frame, given where the game put it; null to leave it there.
      Parameters:
      yaw - the game's camera yaw
      pitch - the game's camera pitch
    • fov

      public static float fov(float vanilla)
      The field of view this frame, given the game's own.
    • hasCamera

      public static boolean hasCamera()
      Whether a cutscene has the camera this frame: the hand, the crosshair's block outline and the like go.
    • locksInput

      public static boolean locksInput()