-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up and started work on telepathy
- Loading branch information
1 parent
fe8cd7c
commit 1c97525
Showing
2 changed files
with
19 additions
and
4 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
common/src/main/java/miyucomics/hexical/HexicalClient.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,11 +1,23 @@ | ||
package miyucomics.hexical; | ||
|
||
import dev.architectury.event.events.client.ClientTickEvent; | ||
import dev.architectury.registry.client.level.entity.EntityRendererRegistry; | ||
import miyucomics.hexical.entities.SpeckEntityRenderer; | ||
import miyucomics.hexical.registry.HexicalEntities; | ||
import net.minecraft.client.option.KeyBinding; | ||
import net.minecraft.text.Text; | ||
import org.lwjgl.glfw.GLFW; | ||
|
||
public class HexicalClient { | ||
private static final KeyBinding TELEPATHY_KEYBIND = new KeyBinding("key.hexical.telepathy", GLFW.GLFW_KEY_G, "key.categories.hexical"); | ||
|
||
public static void init() { | ||
ClientTickEvent.CLIENT_POST.register(client -> { | ||
if (client.player == null) | ||
return; | ||
while (TELEPATHY_KEYBIND.wasPressed()) | ||
client.player.sendMessage(Text.literal("using mind powers!!"), false); | ||
}); | ||
EntityRendererRegistry.register(HexicalEntities.INSTANCE::getSPECK_ENTITY, SpeckEntityRenderer::new); | ||
} | ||
} |
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