Package net.minecraftforge.client.event
Class RenderLevelStageEvent.Stage
java.lang.Object
net.minecraftforge.client.event.RenderLevelStageEvent.Stage
- Enclosing class:
- RenderLevelStageEvent
A time during level rendering for you to render custom things into the world.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final RenderLevelStageEvent.Stage
Use this to render custom block-like geometry into the world.static final RenderLevelStageEvent.Stage
Use this to render custom block-like geometry into the world.static final RenderLevelStageEvent.Stage
Use this to render custom block-like geometry into the world.static final RenderLevelStageEvent.Stage
Use this to render custom block-like geometry into the world.static final RenderLevelStageEvent.Stage
Use this to render after everything in the level has been rendered.static final RenderLevelStageEvent.Stage
Use this to render custom effects into the world, such as custom entity-like objects or special rendering effects.static final RenderLevelStageEvent.Stage
Use this to render custom objects into the skybox.static final RenderLevelStageEvent.Stage
Use this to render custom block-like geometry into the world.static final RenderLevelStageEvent.Stage
Use this to render custom block-like geometry into the world.static final RenderLevelStageEvent.Stage
Use this to render custom block-like geometry into the world.static final RenderLevelStageEvent.Stage
Use this to render custom weather effects into the world.private final String
private static final Map<RenderType,
RenderLevelStageEvent.Stage> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RenderLevelStageEvent.Stage
fromRenderType
(RenderType renderType) Returns the stage bound to the render type, or null if no value is present.private static RenderLevelStageEvent.Stage
register
(String name, RenderType renderType) private static RenderLevelStageEvent.Stage
register
(ResourceLocation name, RenderType renderType) toString()
-
Field Details
-
RENDER_TYPE_STAGES
-
AFTER_SKY
Use this to render custom objects into the skybox. Called regardless of if they sky actually renders or not. -
AFTER_SOLID_BLOCKS
Use this to render custom block-like geometry into the world. -
AFTER_CUTOUT_MIPPED_BLOCKS_BLOCKS
Use this to render custom block-like geometry into the world. -
AFTER_CUTOUT_BLOCKS
Use this to render custom block-like geometry into the world. -
AFTER_ENTITIES
Use this to render custom block-like geometry into the world. -
AFTER_BLOCK_ENTITIES
Use this to render custom block-like geometry into the world. -
AFTER_TRANSLUCENT_BLOCKS
Use this to render custom block-like geometry into the world. Due to how transparency sorting works, this stage may not work properly with translucency. If you intend to render translucency, try usingAFTER_TRIPWIRE_BLOCKS
orAFTER_PARTICLES
. Although this is called within a fabulous graphics target, it does not function properly in many cases. -
AFTER_TRIPWIRE_BLOCKS
Use this to render custom block-like geometry into the world. -
AFTER_PARTICLES
Use this to render custom effects into the world, such as custom entity-like objects or special rendering effects. Called within a fabulous graphics target. Happens after entities render. -
AFTER_WEATHER
Use this to render custom weather effects into the world. Called within a fabulous graphics target. -
AFTER_LEVEL
Use this to render after everything in the level has been rendered. Called afterLevelRenderer.renderLevel(PoseStack, float, long, boolean, Camera, GameRenderer, LightTexture, Matrix4f)
finishes. -
name
-
-
Constructor Details
-
Stage
-
-
Method Details
-
register
private static RenderLevelStageEvent.Stage register(ResourceLocation name, @Nullable RenderType renderType) throws IllegalArgumentException - Throws:
IllegalArgumentException
-
register
private static RenderLevelStageEvent.Stage register(String name, @Nullable RenderType renderType) throws IllegalArgumentException - Throws:
IllegalArgumentException
-
toString
-
fromRenderType
Returns the stage bound to the render type, or null if no value is present.- Returns:
- the stage bound to the render type, or null if no value is present
-