Class EventRegistry

java.lang.Object
net.timtaran.interactivemc.init.registry.EventRegistry

public class EventRegistry extends Object
Registry for mod events.

This class is responsible for registering and initializing all event listeners used by the InteractiveMC mod.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static net.minecraft.world.phys.Vec3
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    Registers common events that apply to both client and server.
    static void
    Registers client-side specific events.
    static void
    renderMarkerAt(Object stage, net.minecraft.client.renderer.LevelRenderer levelRenderer, com.mojang.blaze3d.vertex.PoseStack matrices, float partialTick, org.joml.Matrix4f projectionMatrix, net.minecraft.client.renderer.LightTexture lightTexture, double wx, double wy, double wz, float r, float g, float b, float a)
    Render a marker at world coordinates (wx, wy, wz).

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • pointPos

      public static net.minecraft.world.phys.Vec3 pointPos
  • Constructor Details

    • EventRegistry

      public EventRegistry()
  • Method Details

    • register

      public static void register()
      Registers common events that apply to both client and server.
    • registerClient

      @Environment(CLIENT) public static void registerClient()
      Registers client-side specific events.
    • renderMarkerAt

      public static void renderMarkerAt(Object stage, net.minecraft.client.renderer.LevelRenderer levelRenderer, com.mojang.blaze3d.vertex.PoseStack matrices, float partialTick, org.joml.Matrix4f projectionMatrix, net.minecraft.client.renderer.LightTexture lightTexture, double wx, double wy, double wz, float r, float g, float b, float a)
      Render a marker at world coordinates (wx, wy, wz). Depth test is disabled during drawing so the marker appears above world geometry. The method uses the provided PoseStack and projection matrix.
      Parameters:
      stage - render stage from event (not used here but kept for signature parity)
      levelRenderer - level renderer from event (kept for parity / future use)
      matrices - pose stack supplied by the event
      partialTick - partial tick supplied by the event (not needed for static marker)
      projectionMatrix - projection matrix supplied by the event
      lightTexture - light texture supplied by the event (not needed here)
      wx - world X coordinate
      wy - world Y coordinate
      wz - world Z coordinate
      r - red 0..1
      g - green 0..1
      b - blue 0..1
      a - alpha 0..1