forked from Lunatrius/Schematica
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(various): fixed various things related to ui. Added support for r…
…l-names in SchematicaMappings Signed-off-by: TimMayr <[email protected]>
- Loading branch information
Showing
11 changed files
with
107 additions
and
52 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
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
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
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
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
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
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
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
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
21 changes: 20 additions & 1 deletion
21
...ge/src/main/java/com/github/lunatrius/schematica/neoforge/client/SchematicaNeoClient.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,14 +1,33 @@ | ||
package com.github.lunatrius.schematica.neoforge.client; | ||
|
||
import com.github.lunatrius.schematica.handler.client.InputHandler; | ||
import com.github.lunatrius.schematica.neoforge.SchematicaNeoForge; | ||
import com.github.lunatrius.schematica.neoforge.client.handler.PlayerHandlerNeo; | ||
import com.github.lunatrius.schematica.neoforge.client.handler.RenderTickHandlerNeo; | ||
import com.github.lunatrius.schematica.reference.Reference; | ||
import net.minecraft.client.KeyMapping; | ||
import net.neoforged.api.distmarker.Dist; | ||
import net.neoforged.bus.api.IEventBus; | ||
import net.neoforged.bus.api.SubscribeEvent; | ||
import net.neoforged.fml.common.EventBusSubscriber; | ||
import net.neoforged.fml.common.Mod; | ||
import net.neoforged.neoforge.client.event.RegisterKeyMappingsEvent; | ||
import net.neoforged.neoforge.common.NeoForge; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
@Mod(value = Reference.MOD_ID, dist = Dist.CLIENT) | ||
public class SchematicaNeoClient { | ||
public SchematicaNeoClient() { | ||
public SchematicaNeoClient(@NotNull IEventBus modBus) { | ||
NeoForge.EVENT_BUS.register(PlayerHandlerNeo.INSTANCE); | ||
NeoForge.EVENT_BUS.register(RenderTickHandlerNeo.INSTANCE); | ||
modBus.register(this); | ||
} | ||
|
||
//TODO: Maybe move this back to arch in case that works | ||
@SubscribeEvent | ||
public void registerKeys(@NotNull RegisterKeyMappingsEvent event) { | ||
for (KeyMapping keyBinding : InputHandler.KEY_BINDINGS) { | ||
event.register(keyBinding); | ||
} | ||
} | ||
} |
Oops, something went wrong.