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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.resources.ResourceLocation
getWallpaper
(String name) static boolean
hasWallpaper
(String name) 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
-
DEFAULT_WALLPAPER
- See Also:
-
-
Constructor Details
-
WallpapersListener
public WallpapersListener()
-
-
Method Details
-
getWallpapers
-
hasWallpaper
-
getWallpaper
-
onResourceManagerReload
public void onResourceManagerReload(net.minecraft.server.packs.resources.ResourceManager manager) - Specified by:
onResourceManagerReload
in interfacenet.minecraft.server.packs.resources.ResourceManagerReloadListener
-