Package foundry.veil.api.client.registry
Class RenderTypeStageRegistry
java.lang.Object
foundry.veil.api.client.registry.RenderTypeStageRegistry
This allows custom render type stages to be registered. This allows custom code to be run for the setup and clear state of any render type.
addGenericStage(Predicate, RenderStateShard...)
also allows arbitrary injection into any render type created.
This should be called during mod construction/init.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addGenericStage
(Predicate<net.minecraft.client.renderer.RenderType.CompositeRenderType> filter, net.minecraft.client.renderer.RenderStateShard... shards) Registers a render stage.static void
Registers a render stage.static void
addStage
(net.minecraft.client.renderer.RenderType renderType, net.minecraft.client.renderer.RenderStateShard... shards) Registers a render stage.static void
inject
(net.minecraft.client.renderer.RenderType.CompositeRenderType renderType)
-
Method Details
-
addStage
public static void addStage(net.minecraft.client.renderer.RenderType renderType, net.minecraft.client.renderer.RenderStateShard... shards) Registers a render stage. The specified shards will be added to the specified render type during construction.- Parameters:
renderType
- The render type to add the stage toshards
- The shards to add to all matching render types
-
addStage
Registers a render stage. The specified shards will be added to the specified render type during construction.- Parameters:
name
- The name of the render type to add the stage toshards
- The shards to add to all matching render types
-
addGenericStage
public static void addGenericStage(Predicate<net.minecraft.client.renderer.RenderType.CompositeRenderType> filter, net.minecraft.client.renderer.RenderStateShard... shards) Registers a render stage. The specified shards will be added to all render types that match the specified filter during construction.- Parameters:
filter
- The filter for what render types to add the stage toshards
- The shards to add to all matching render types
-
inject
@Internal public static void inject(net.minecraft.client.renderer.RenderType.CompositeRenderType renderType)
-