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 static final org.slf4j.Loggerprivate final Minecraftprivate boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcharTyped(long window, CharacterEvent event) private voidcopyCreateBlockCommand(BlockState state, BlockPos pos, @Nullable CompoundTag tag) private voidcopyCreateEntityCommand(Identifier entityId, Vec3 pos, @Nullable CompoundTag tag) private voidcopyRecreateCommand(boolean privileged, boolean askServer) private voiddebugFeedback(String message) private voiddebugFeedbackComponent(Component message) private voiddebugFeedbackEnabledStatus(String prefix, boolean enabled) private voiddebugFeedbackTranslated(String translationKey, Object... args) private voiddebugWarningComponent(Component message) private static ComponentdecorateDebugComponent(ChatFormatting formatting, Component component) private booleanhandleChunkDebugKeys(KeyEvent event) private booleanhandleDebugKeys(KeyEvent event) private voidvoidsetClipboard(String string) voidprivate voidshowDebugChat(Component message) voidtick()
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
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 -
usedDebugKeyAsModifier
private boolean usedDebugKeyAsModifier
-
-
Constructor Details
-
KeyboardHandler
-
-
Method Details
-
handleChunkDebugKeys
-
debugFeedbackEnabledStatus
-
showDebugChat
-
decorateDebugComponent
-
debugWarningComponent
-
debugFeedbackComponent
-
debugFeedbackTranslated
-
debugFeedback
-
handleDebugKeys
-
copyRecreateCommand
private void copyRecreateCommand(boolean privileged, boolean askServer) -
copyCreateBlockCommand
-
copyCreateEntityCommand
-
keyPress
private void keyPress(long window, @net.minecraft.client.input.KeyEvent.Action int action, KeyEvent event) -
charTyped
-
setup
-
getClipboard
-
setClipboard
-
tick
public void tick()
-