Class WallpapersListener

java.lang.Object
com.pixelmonmod.pixelmon.client.listener.WallpapersListener
All Implemented Interfaces:
net.minecraft.server.packs.resources.PreparableReloadListener, net.minecraft.server.packs.resources.ResourceManagerReloadListener

public class WallpapersListener extends Object implements net.minecraft.server.packs.resources.ResourceManagerReloadListener
This class keeps track of all the wallpapers from all the resource pack. It explicitly asks for all the files "wallpapers.json", and loads them all into a map which will be used by the GuiPC.
  • Nested Class Summary

    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 String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.resources.ResourceLocation
     
    static List<String>
     
    static boolean
     
    void
    onResourceManagerReload(net.minecraft.server.packs.resources.ResourceManager manager)
     

    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

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

    reload
  • Field Details

  • Constructor Details

    • WallpapersListener

      public WallpapersListener()
  • Method Details

    • getWallpapers

      public static List<String> getWallpapers()
    • hasWallpaper

      public static boolean hasWallpaper(String name)
    • getWallpaper

      public static net.minecraft.resources.ResourceLocation getWallpaper(String name)
    • onResourceManagerReload

      public void onResourceManagerReload(net.minecraft.server.packs.resources.ResourceManager manager)
      Specified by:
      onResourceManagerReload in interface net.minecraft.server.packs.resources.ResourceManagerReloadListener