Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(game.widget): remove client widgets
ClientEsh
- Loading branch information
1 parent
e9dfcbd
commit a708266
Showing
5 changed files
with
1 addition
and
242 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 0 additions & 24 deletions
24
src/main/java/org/auioc/mcmod/arnicalib/mod/client/config/AHClientConfig.java
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
src/main/java/org/auioc/mcmod/arnicalib/mod/client/event/AHClientEventHandler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,17 @@ | ||
package org.auioc.mcmod.arnicalib.mod.client.event; | ||
|
||
import org.auioc.mcmod.arnicalib.mod.client.command.AHClientCommands; | ||
import org.auioc.mcmod.arnicalib.mod.client.widget.AdvancedItemTooltip; | ||
import org.auioc.mcmod.arnicalib.mod.client.widget.DebugScreenInformation; | ||
import net.minecraft.client.Minecraft; | ||
import net.minecraftforge.api.distmarker.Dist; | ||
import net.minecraftforge.api.distmarker.OnlyIn; | ||
import net.minecraftforge.client.event.RegisterClientCommandsEvent; | ||
import net.minecraftforge.client.event.RenderGameOverlayEvent; | ||
import net.minecraftforge.event.entity.player.ItemTooltipEvent; | ||
import net.minecraftforge.eventbus.api.SubscribeEvent; | ||
|
||
@OnlyIn(Dist.CLIENT) | ||
public final class AHClientEventHandler { | ||
|
||
private static final Minecraft MC = Minecraft.getInstance(); | ||
|
||
@SubscribeEvent | ||
public static void registerCommands(final RegisterClientCommandsEvent event) { | ||
AHClientCommands.register(event.getDispatcher()); | ||
} | ||
|
||
@SubscribeEvent | ||
public static void onItemTooltip(ItemTooltipEvent event) { | ||
AdvancedItemTooltip.handle(event); | ||
} | ||
|
||
@SubscribeEvent | ||
public static void onRenderTextOverlay(final RenderGameOverlayEvent.Text event) { | ||
if (MC.options.renderDebug) DebugScreenInformation.handle(event.getLeft(), event.getRight()); | ||
} | ||
|
||
} |
85 changes: 0 additions & 85 deletions
85
src/main/java/org/auioc/mcmod/arnicalib/mod/client/widget/AdvancedItemTooltip.java
This file was deleted.
Oops, something went wrong.
110 changes: 0 additions & 110 deletions
110
src/main/java/org/auioc/mcmod/arnicalib/mod/client/widget/DebugScreenInformation.java
This file was deleted.
Oops, something went wrong.