Package foundry.veil.api.util
Class CompositeReloadListener
java.lang.Object
foundry.veil.api.util.CompositeReloadListener
- All Implemented Interfaces:
net.minecraft.server.packs.resources.PreparableReloadListener
public final class CompositeReloadListener
extends Object
implements net.minecraft.server.packs.resources.PreparableReloadListener
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener
net.minecraft.server.packs.resources.PreparableReloadListener.PreparationBarrier
-
Method Summary
Modifier and TypeMethodDescription@NotNull String
getName()
static net.minecraft.server.packs.resources.PreparableReloadListener
of
(net.minecraft.server.packs.resources.PreparableReloadListener... listeners) Creates a reload listener that waits for all listeners to complete in stages.@NotNull CompletableFuture
<Void> reload
(@NotNull net.minecraft.server.packs.resources.PreparableReloadListener.PreparationBarrier preparationBarrier, @NotNull net.minecraft.server.packs.resources.ResourceManager resourceManager, @NotNull net.minecraft.util.profiling.ProfilerFiller prepareProfiler, @NotNull net.minecraft.util.profiling.ProfilerFiller applyProfiler, @NotNull Executor backgroundExecutor, @NotNull Executor gameExecutor)
-
Method Details
-
of
public static net.minecraft.server.packs.resources.PreparableReloadListener of(net.minecraft.server.packs.resources.PreparableReloadListener... listeners) Creates a reload listener that waits for all listeners to complete in stages.- Parameters:
listeners
- The listeners to composite together- Returns:
- A new listener that properly allows listeners to use barriers
-
reload
@NotNull public @NotNull CompletableFuture<Void> reload(@NotNull @NotNull net.minecraft.server.packs.resources.PreparableReloadListener.PreparationBarrier preparationBarrier, @NotNull @NotNull net.minecraft.server.packs.resources.ResourceManager resourceManager, @NotNull @NotNull net.minecraft.util.profiling.ProfilerFiller prepareProfiler, @NotNull @NotNull net.minecraft.util.profiling.ProfilerFiller applyProfiler, @NotNull @NotNull Executor backgroundExecutor, @NotNull @NotNull Executor gameExecutor) - Specified by:
reload
in interfacenet.minecraft.server.packs.resources.PreparableReloadListener
-
getName
- Specified by:
getName
in interfacenet.minecraft.server.packs.resources.PreparableReloadListener
-