World Render Events
public final class WorldRenderEvents
Content copied to clipboard
Mods should use these events to introduce custom rendering during render without adding complicated and conflict-prone injections there. Using these events also enables 3rd-party renderers that make large-scale changes to rendering maintain compatibility by calling any broken event invokers directly.
The order of events each frame is as follows:
- START
- AFTER_SETUP
- BEFORE_ENTITIES
- AFTER_ENTITIES
- BEFORE_BLOCK_OUTLINE
- BLOCK_OUTLINE (If not cancelled in BEFORE_BLOCK_OUTLINE)
- BEFORE_DEBUG_RENDER
- AFTER_TRANSLUCENT
- LAST
- END
These events are not dependent on the Fabric rendering API or Indigo but work when those are present.
Types
AfterEntities
Link copied to clipboard
public interface AfterEntities
Content copied to clipboard
AfterSetup
Link copied to clipboard
public interface AfterSetup
Content copied to clipboard
AfterTranslucent
Link copied to clipboard
public interface AfterTranslucent
Content copied to clipboard
BeforeBlockOutline
Link copied to clipboard
public interface BeforeBlockOutline
Content copied to clipboard
BeforeEntities
Link copied to clipboard
public interface BeforeEntities
Content copied to clipboard
BlockOutline
Link copied to clipboard
public interface BlockOutline
Content copied to clipboard
DebugRender
Link copied to clipboard
public interface DebugRender
Content copied to clipboard
Properties
AFTER_ENTITIES
Link copied to clipboard
public final static Event<WorldRenderEvents.AfterEntities> AFTER_ENTITIES
Content copied to clipboard
AFTER_SETUP
Link copied to clipboard
AFTER_TRANSLUCENT
Link copied to clipboard
public final static Event<WorldRenderEvents.AfterTranslucent> AFTER_TRANSLUCENT
Content copied to clipboard
BEFORE_BLOCK_OUTLINE
Link copied to clipboard
public final static Event<WorldRenderEvents.BeforeBlockOutline> BEFORE_BLOCK_OUTLINE
Content copied to clipboard
BEFORE_DEBUG_RENDER
Link copied to clipboard
public final static Event<WorldRenderEvents.DebugRender> BEFORE_DEBUG_RENDER
Content copied to clipboard
BEFORE_ENTITIES
Link copied to clipboard
public final static Event<WorldRenderEvents.BeforeEntities> BEFORE_ENTITIES
Content copied to clipboard
BLOCK_OUTLINE
Link copied to clipboard
END
Link copied to clipboard
LAST
Link copied to clipboard
START
Link copied to clipboard
Sources
jvm source
Link copied to clipboard