Package net.minecraft.client
Class KeyboardHandler
java.lang.Object
net.minecraft.client.KeyboardHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ClipboardManagerstatic final intprivate longprivate longprivate longprivate booleanprivate final Minecraft -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcharTyped(long windowPointer, int codePoint, int modifiers) private voidcopyCreateBlockCommand(BlockState state, BlockPos pos, CompoundTag compound) private voidcopyCreateEntityCommand(ResourceLocation entityId, Vec3 pos, CompoundTag compound) private voidcopyRecreateCommand(boolean privileged, boolean askServer) private voiddebugComponent(ChatFormatting formatting, Component message) private voiddebugFeedback(String message, Object... args) private voiddebugFeedbackComponent(Component message) private voiddebugFeedbackTranslated(String message, Object... args) private voiddebugWarningTranslated(String message, Object... args) private booleanhandleChunkDebugKeys(int keyCode) private booleanhandleDebugKeys(int key) voidkeyPress(long windowPointer, int key, int scanCode, int action, int modifiers) voidsetClipboard(String string) voidsetup(long window) voidtick()
-
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()
-