Class EventRegistry
java.lang.Object
net.timtaran.interactivemc.init.registry.EventRegistry
Registry for mod events.
This class is responsible for registering and initializing all event listeners used by the InteractiveMC mod.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidregister()Registers common events that apply to both client and server.static voidRegisters client-side specific events.static voidrenderMarkerAt(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).
-
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 eventpartialTick- partial tick supplied by the event (not needed for static marker)projectionMatrix- projection matrix supplied by the eventlightTexture- light texture supplied by the event (not needed here)wx- world X coordinatewy- world Y coordinatewz- world Z coordinater- red 0..1g- green 0..1b- blue 0..1a- alpha 0..1
-