Package com.igrium.videolib.util
Class FileVideoLoader<T extends VideoHandle>
java.lang.Object
com.igrium.videolib.util.FileVideoLoader<T>
- Type Parameters:
T
- The type of handle this loader will use.
- All Implemented Interfaces:
net.fabricmc.fabric.api.resource.IdentifiableResourceReloadListener
,net.minecraft.resource.ResourceReloader
public class FileVideoLoader<T extends VideoHandle>
extends Object
implements net.fabricmc.fabric.api.resource.IdentifiableResourceReloadListener
A video loader that copies videos into temp directory for easy streaming.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.resource.ResourceReloader
net.minecraft.resource.ResourceReloader.Synchronizer
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.util.Identifier
protected File
loadVideo
(net.minecraft.util.Identifier id, net.minecraft.resource.ResourceManager manager) reload
(net.minecraft.resource.ResourceReloader.Synchronizer synchronizer, net.minecraft.resource.ResourceManager manager, net.minecraft.util.profiler.Profiler prepareProfiler, net.minecraft.util.profiler.Profiler applyProfiler, Executor prepareExecutor, Executor applyExecutor) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.fabricmc.fabric.api.resource.IdentifiableResourceReloadListener
getFabricDependencies
Methods inherited from interface net.minecraft.resource.ResourceReloader
getName
-
Field Details
-
handleConsumer
-
extensionFilter
-
handleFactory
-
-
Constructor Details
-
FileVideoLoader
-
-
Method Details
-
reload
public CompletableFuture<Void> reload(net.minecraft.resource.ResourceReloader.Synchronizer synchronizer, net.minecraft.resource.ResourceManager manager, net.minecraft.util.profiler.Profiler prepareProfiler, net.minecraft.util.profiler.Profiler applyProfiler, Executor prepareExecutor, Executor applyExecutor) - Specified by:
reload
in interfacenet.minecraft.resource.ResourceReloader
-
loadVideo
protected File loadVideo(net.minecraft.util.Identifier id, net.minecraft.resource.ResourceManager manager) throws IOException - Throws:
IOException
-
getFabricId
public net.minecraft.util.Identifier getFabricId()- Specified by:
getFabricId
in interfacenet.fabricmc.fabric.api.resource.IdentifiableResourceReloadListener
-