Class TextureReloadListener

java.lang.Object
net.minecraft.server.packs.resources.SimplePreparableReloadListener<TextureReloadListener.TexturePacks>
com.minecolonies.core.event.TextureReloadListener
All Implemented Interfaces:
net.minecraft.server.packs.resources.PreparableReloadListener

public class TextureReloadListener extends net.minecraft.server.packs.resources.SimplePreparableReloadListener<TextureReloadListener.TexturePacks>
Specific texture reload listener.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Storage class to hand the texture packs from off-thread to the main thread.

    Nested classes/interfaces inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener

    net.minecraft.server.packs.resources.PreparableReloadListener.PreparationBarrier
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final List<String>
    List of all texture packs available.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    apply(@NotNull TextureReloadListener.TexturePacks packs, @NotNull net.minecraft.server.packs.resources.ResourceManager manager, @NotNull net.minecraft.util.profiling.ProfilerFiller profiler)
     
    static void
    modInitClient(net.minecraftforge.client.event.RegisterClientReloadListenersEvent event)
     
    prepare(@NotNull net.minecraft.server.packs.resources.ResourceManager manager, @NotNull net.minecraft.util.profiling.ProfilerFiller profiler)
     

    Methods inherited from class net.minecraft.server.packs.resources.SimplePreparableReloadListener

    reload

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener

    getName
  • Field Details

    • TEXTURE_PACKS

      public static final List<String> TEXTURE_PACKS
      List of all texture packs available.
  • Constructor Details

    • TextureReloadListener

      public TextureReloadListener()
  • Method Details

    • prepare

      @NotNull protected @NotNull TextureReloadListener.TexturePacks prepare(@NotNull @NotNull net.minecraft.server.packs.resources.ResourceManager manager, @NotNull @NotNull net.minecraft.util.profiling.ProfilerFiller profiler)
      Specified by:
      prepare in class net.minecraft.server.packs.resources.SimplePreparableReloadListener<TextureReloadListener.TexturePacks>
    • apply

      protected void apply(@NotNull @NotNull TextureReloadListener.TexturePacks packs, @NotNull @NotNull net.minecraft.server.packs.resources.ResourceManager manager, @NotNull @NotNull net.minecraft.util.profiling.ProfilerFiller profiler)
      Specified by:
      apply in class net.minecraft.server.packs.resources.SimplePreparableReloadListener<TextureReloadListener.TexturePacks>
    • modInitClient

      public static void modInitClient(net.minecraftforge.client.event.RegisterClientReloadListenersEvent event)