Package net.minecraft.client
Class KeyboardHandler
java.lang.Object
net.minecraft.client.KeyboardHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ClipboardManager
static final int
private long
private long
private long
private boolean
private final Minecraft
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
charTyped
(long windowPointer, int codePoint, int modifiers) private void
copyCreateBlockCommand
(BlockState state, BlockPos pos, CompoundTag compound) private void
copyCreateEntityCommand
(ResourceLocation entityId, Vec3 pos, CompoundTag compound) private void
copyRecreateCommand
(boolean privileged, boolean askServer) private void
debugComponent
(ChatFormatting formatting, Component message) private void
debugFeedback
(String message, Object... args) private void
debugFeedbackComponent
(Component message) private void
debugFeedbackTranslated
(String message, Object... args) private void
debugWarningTranslated
(String message, Object... args) private boolean
handleChunkDebugKeys
(int keyCode) private boolean
handleDebugKeys
(int key) void
keyPress
(long windowPointer, int key, int scanCode, int action, int modifiers) void
setClipboard
(String string) void
setup
(long window) void
tick()
-
Field Details
-
DEBUG_CRASH_TIME
public static final int DEBUG_CRASH_TIME- See Also:
-
minecraft
-
clipboardManager
-
debugCrashKeyTime
private long debugCrashKeyTime -
debugCrashKeyReportedTime
private long debugCrashKeyReportedTime -
debugCrashKeyReportedCount
private long debugCrashKeyReportedCount -
handledDebugKey
private boolean handledDebugKey
-
-
Constructor Details
-
KeyboardHandler
-
-
Method Details
-
handleChunkDebugKeys
private boolean handleChunkDebugKeys(int keyCode) -
debugComponent
-
debugFeedbackComponent
-
debugFeedbackTranslated
-
debugWarningTranslated
-
debugFeedback
-
handleDebugKeys
private boolean handleDebugKeys(int key) -
copyRecreateCommand
private void copyRecreateCommand(boolean privileged, boolean askServer) -
copyCreateBlockCommand
-
copyCreateEntityCommand
private void copyCreateEntityCommand(ResourceLocation entityId, Vec3 pos, @Nullable CompoundTag compound) -
keyPress
public void keyPress(long windowPointer, int key, int scanCode, int action, int modifiers) -
charTyped
private void charTyped(long windowPointer, int codePoint, int modifiers) -
setup
public void setup(long window) -
getClipboard
-
setClipboard
-
tick
public void tick()
-