Class DynamicRenderTypeManager
java.lang.Object
net.minecraft.server.packs.resources.SimplePreparableReloadListener<Map<net.minecraft.resources.ResourceLocation,byte[]>>
foundry.veil.api.client.render.rendertype.DynamicRenderTypeManager
- All Implemented Interfaces:
net.minecraft.server.packs.resources.PreparableReloadListener
public class DynamicRenderTypeManager
extends net.minecraft.server.packs.resources.SimplePreparableReloadListener<Map<net.minecraft.resources.ResourceLocation,byte[]>>
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener
net.minecraft.server.packs.resources.PreparableReloadListener.PreparationBarrier
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
apply
(Map<net.minecraft.resources.ResourceLocation, byte[]> fileData, net.minecraft.server.packs.resources.ResourceManager resourceManager, net.minecraft.util.profiling.ProfilerFiller profilerFiller) @Nullable net.minecraft.client.renderer.RenderType
Retrieves and caches a rendertype with the specified id.protected @NotNull Map
<net.minecraft.resources.ResourceLocation, byte[]> prepare
(@NotNull net.minecraft.server.packs.resources.ResourceManager resourceManager, @NotNull net.minecraft.util.profiling.ProfilerFiller profilerFiller) 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
-
Constructor Details
-
DynamicRenderTypeManager
public DynamicRenderTypeManager()
-
-
Method Details
-
get
@Nullable public @Nullable net.minecraft.client.renderer.RenderType get(net.minecraft.resources.ResourceLocation id, Object... params) Retrieves and caches a rendertype with the specified id.- Parameters:
id
- The id of the rendertype to getparams
- Additional parameters to configure the render type- Returns:
- The rendertype created or
null
if unregistered or an error occurs
-
prepare
@NotNull protected @NotNull Map<net.minecraft.resources.ResourceLocation,byte[]> prepare(@NotNull @NotNull net.minecraft.server.packs.resources.ResourceManager resourceManager, @NotNull @NotNull net.minecraft.util.profiling.ProfilerFiller profilerFiller) - Specified by:
prepare
in classnet.minecraft.server.packs.resources.SimplePreparableReloadListener<Map<net.minecraft.resources.ResourceLocation,
byte[]>>
-
apply
protected void apply(Map<net.minecraft.resources.ResourceLocation, byte[]> fileData, net.minecraft.server.packs.resources.ResourceManager resourceManager, net.minecraft.util.profiling.ProfilerFiller profilerFiller) - Specified by:
apply
in classnet.minecraft.server.packs.resources.SimplePreparableReloadListener<Map<net.minecraft.resources.ResourceLocation,
byte[]>>
-