public class KeyboardListener
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private boolean |
actionKeyF3 |
private ClipboardHelper |
clipboardHelper |
private long |
debugCrashKeyPressTime |
private long |
debugCrashWarningsSent |
private long |
lastDebugCrashWarning |
private Minecraft |
mc |
private boolean |
repeatEventsEnabled |
Constructor and Description |
---|
KeyboardListener(Minecraft mcIn) |
Modifier and Type | Method and Description |
---|---|
private void |
copyHoveredObject(boolean privileged,
boolean askServer) |
void |
enableRepeatEvents(boolean p_197967_1_) |
java.lang.String |
getClipboardString() |
private void |
onCharEvent(long windowPointer,
int codePoint,
int modifiers) |
void |
onKeyEvent(long windowPointer,
int key,
int scanCode,
int action,
int modifiers) |
private void |
printDebugMessage(java.lang.String message,
java.lang.Object... args) |
private void |
printDebugWarning(java.lang.String message,
java.lang.Object... args) |
private boolean |
processKeyF3(int key) |
private void |
setBlockClipboardString(BlockState state,
BlockPos pos,
CompoundNBT compound) |
void |
setClipboardString(java.lang.String string) |
private void |
setEntityClipboardString(ResourceLocation entityIdIn,
Vec3d pos,
CompoundNBT compound) |
void |
setupCallbacks(long window) |
void |
tick() |
private final Minecraft mc
private boolean repeatEventsEnabled
private final ClipboardHelper clipboardHelper
private long debugCrashKeyPressTime
private long lastDebugCrashWarning
private long debugCrashWarningsSent
private boolean actionKeyF3
public KeyboardListener(Minecraft mcIn)
private void printDebugMessage(java.lang.String message, java.lang.Object... args)
private void printDebugWarning(java.lang.String message, java.lang.Object... args)
private boolean processKeyF3(int key)
private void copyHoveredObject(boolean privileged, boolean askServer)
private void setBlockClipboardString(BlockState state, BlockPos pos, @Nullable CompoundNBT compound)
private void setEntityClipboardString(ResourceLocation entityIdIn, Vec3d pos, @Nullable CompoundNBT compound)
public void onKeyEvent(long windowPointer, int key, int scanCode, int action, int modifiers)
private void onCharEvent(long windowPointer, int codePoint, int modifiers)
public void enableRepeatEvents(boolean p_197967_1_)
public void setupCallbacks(long window)
public java.lang.String getClipboardString()
public void setClipboardString(java.lang.String string)
public void tick()