Package com.igrium.videolib
Class VideoLib
java.lang.Object
com.igrium.videolib.VideoLib
- All Implemented Interfaces:
net.fabricmc.api.ClientModInitializer
The main class for VideoLib.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.util.registry.Registry<VideoManager.VideoManagerFactory>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the VideoLib configuration data.Get a "global" video player that can be used by default.Get the active video handle factory.static VideoLib
Get the current VideoLib instance.Get the active video manager.void
Internal use only.
-
Field Details
-
VIDEO_MANAGERS
public static final net.minecraft.util.registry.Registry<VideoManager.VideoManagerFactory> VIDEO_MANAGERS
-
-
Constructor Details
-
VideoLib
public VideoLib()
-
-
Method Details
-
getInstance
Get the current VideoLib instance.- Returns:
- VideoLib instance
-
getConfig
Get the VideoLib configuration data. Rarely useful except internally.- Returns:
- VideoLib config.
-
getVideoManager
Get the active video manager.- Returns:
- The video manager.
-
getHandleFactory
Get the active video handle factory. Shortcut forgetVideoManager().getHandleFactory()
- Returns:
- The video handle factory.
-
getDefaultPlayer
Get a "global" video player that can be used by default. Whenever there isn't the need for multiple videos playing at once, this reduces the overhead of spawning and removing video players whenever they're needed. To ensure mod compatibility, this should generally only be used in the UI.- Returns:
- Default video player.
-
onInitializeClient
public void onInitializeClient()Internal use only.- Specified by:
onInitializeClient
in interfacenet.fabricmc.api.ClientModInitializer
-