Skip to content

Commit

Permalink
Fix Import order
Browse files Browse the repository at this point in the history
  • Loading branch information
JT122406 committed Dec 5, 2024
1 parent c282cb8 commit 3224d3e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package net.fabricmc.fabric.api.client.rendering.v1;

import net.fabricmc.fabric.api.event.Event;
import net.fabricmc.fabric.api.event.EventFactory;

import net.minecraft.client.gui.DrawContext;
import net.minecraft.client.render.RenderTickCounter;

import net.fabricmc.fabric.api.event.Event;
import net.fabricmc.fabric.api.event.EventFactory;

public interface HudPostRenderCallback {
Event<HudPostRenderCallback> EVENT = EventFactory.createArrayBacked(HudPostRenderCallback.class, (listeners) -> (matrixStack, delta) -> {
for (HudPostRenderCallback event : listeners) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package net.fabricmc.fabric.api.client.rendering.v1;

import net.fabricmc.fabric.api.event.Event;
import net.fabricmc.fabric.api.event.EventFactory;

import net.minecraft.client.gui.DrawContext;
import net.minecraft.client.render.RenderTickCounter;

import net.fabricmc.fabric.api.event.Event;
import net.fabricmc.fabric.api.event.EventFactory;

public interface HudPreRenderCallback {
Event<HudPreRenderCallback> EVENT = EventFactory.createArrayBacked(HudPreRenderCallback.class, (listeners) -> (matrixStack, delta) -> {
for (HudPreRenderCallback event : listeners) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@

import com.mojang.blaze3d.systems.RenderSystem;

import net.fabricmc.fabric.api.client.rendering.v1.HudPostRenderCallback;
import net.fabricmc.fabric.api.client.rendering.v1.HudPreRenderCallback;

import org.joml.Matrix4f;

Check failure on line 21 in fabric-rendering-v1/src/testmodClient/java/net/fabricmc/fabric/test/rendering/client/HudAndShaderTest.java

View workflow job for this annotation

GitHub Actions / build (21-ubuntu)

Extra separation in import group before 'org.joml.Matrix4f'

import net.minecraft.client.MinecraftClient;
Expand All @@ -35,6 +32,8 @@

import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.rendering.v1.CoreShaderRegistrationCallback;
import net.fabricmc.fabric.api.client.rendering.v1.HudPostRenderCallback;
import net.fabricmc.fabric.api.client.rendering.v1.HudPreRenderCallback;

/**
* Tests {@link HudPostRenderCallback}, {@link HudPreRenderCallback} and {@link CoreShaderRegistrationCallback} by drawing a green rectangle
Expand Down

0 comments on commit 3224d3e

Please sign in to comment.