Class CutsceneManager
java.lang.Object
net.ixdarklord.coolcatcanvas.internal.client.cutscene.CutsceneManager
-
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable CameraPosecamera(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 CutscenePlaybackcurrent()static @Nullable PlaybackImplThe playback on screen, a preview of the editor's included.static floatfov(float vanilla) The field of view this frame, given the game's own.static @Nullable Cutsceneget(net.minecraft.resources.Identifier id) static voidhandle(CutscenePayload payload) The server asking for a cutscene, or for the one playing to stop.static booleanWhether 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 voidinit()static booleanstatic @Nullable CutscenePlaybackplay(@Nullable net.minecraft.resources.Identifier id, Cutscene cutscene, @Nullable net.minecraft.world.phys.Vec3 origin, float yaw, boolean fromServer) static @Nullable CutscenePlaybackplay(net.minecraft.resources.Identifier id, @Nullable net.minecraft.world.phys.Vec3 origin, float yaw, boolean fromServer) static PlaybackImplThe editor's preview: a playback that starts held on a frame, fires no start or end, and locks nothing.static voidstatic voidreload(net.minecraft.server.packs.resources.ResourceManager manager) Reads assets//cutscene/ .json from every pack; a file that fails is logged and skipped. static voidunregister(net.minecraft.resources.Identifier id)
-
Method Details
-
init
public static void init() -
register
-
unregister
public static void unregister(net.minecraft.resources.Identifier id) -
get
-
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
-
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
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 yawpitch- 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()
-