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 Type
    Method
    Description
    @NotNull String
     
    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.
    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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 interface net.minecraft.server.packs.resources.PreparableReloadListener
    • getName

      @NotNull public @NotNull String getName()
      Specified by:
      getName in interface net.minecraft.server.packs.resources.PreparableReloadListener