Skip to content

Commit 4b73e2b

Browse files
a bit of javadocs
1 parent 356b691 commit 4b73e2b

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

src/main/java/com/gregtechceu/gtceu/client/CharTypedEvent.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
import net.minecraftforge.eventbus.api.Cancelable;
66
import net.minecraftforge.eventbus.api.Event;
77

8+
/**
9+
* Fired when the corresponding GLFW event is triggered, before Minecraft's handling.
10+
* Cancelling this event will also cancel further handling by Minecraft, like firing the
11+
* {@link net.minecraftforge.client.event.ScreenEvent.CharacterTyped} event.
12+
*/
813
@AllArgsConstructor
914
@Getter
1015
@Cancelable

src/main/java/com/gregtechceu/gtceu/client/EarlyKeyPressEvent.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,17 @@
22

33
import lombok.AllArgsConstructor;
44
import lombok.Getter;
5+
import net.minecraftforge.client.event.InputEvent.Key;
6+
import net.minecraftforge.client.event.ScreenEvent.KeyPressed;
57
import net.minecraftforge.eventbus.api.Cancelable;
68
import net.minecraftforge.eventbus.api.Event;
79

10+
/**
11+
* Fired when the corresponding GLFW event is triggered, before Minecraft's handling.
12+
* Cancelling this event will also cancel further handling by Minecraft, like detecting
13+
* ESC to pause the game, other controls, and firing the {@link Key} and {@link KeyPressed}
14+
* events.
15+
*/
816
@AllArgsConstructor
917
@Getter
1018
@Cancelable

0 commit comments

Comments
 (0)