Package com.minecolonies.core.event
Class TextureReloadListener
java.lang.Object
net.neoforged.neoforge.resource.ContextAwareReloadListener
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 ClassesModifier and TypeClassDescriptionstatic classStorage 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
FieldsModifier and TypeFieldDescriptionList of all texture packs available. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapply(@NotNull TextureReloadListener.TexturePacks packs, @NotNull net.minecraft.server.packs.resources.ResourceManager manager, @NotNull net.minecraft.util.profiling.ProfilerFiller profiler) static voidmodInitClient(net.neoforged.neoforge.client.event.RegisterClientReloadListenersEvent event) protected @NotNull TextureReloadListener.TexturePacksprepare(@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
reloadMethods inherited from class net.neoforged.neoforge.resource.ContextAwareReloadListener
getContext, getRegistryLookup, injectContext, makeConditionalOpsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener
getName
-
Field Details
-
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:
preparein classnet.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:
applyin classnet.minecraft.server.packs.resources.SimplePreparableReloadListener<TextureReloadListener.TexturePacks>
-
modInitClient
public static void modInitClient(net.neoforged.neoforge.client.event.RegisterClientReloadListenersEvent event)
-