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 static final org.slf4j.Loggerprivate final Minecraft -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcharTyped(long window, CharacterEvent event) private voidcopyCreateBlockCommand(BlockState state, BlockPos pos, CompoundTag compound) private voidcopyCreateEntityCommand(ResourceLocation entityId, Vec3 pos, CompoundTag compound) private voidcopyRecreateCommand(boolean privileged, boolean askServer) private voiddebugFeedbackComponent(Component message) private voiddebugFeedbackFormatted(String message, Object... args) private voiddebugFeedbackTranslated(String message) 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 -
handledDebugKey
private boolean handledDebugKey
-
-
Constructor Details
-
KeyboardHandler
-
-
Method Details
-
handleChunkDebugKeys
-
showDebugChat
-
decorateDebugComponent
-
debugWarningComponent
-
debugFeedbackComponent
-
debugFeedbackTranslated
-
debugFeedbackFormatted
-
handleDebugKeys
-
copyRecreateCommand
private void copyRecreateCommand(boolean privileged, boolean askServer) -
copyCreateBlockCommand
-
copyCreateEntityCommand
private void copyCreateEntityCommand(ResourceLocation entityId, Vec3 pos, @Nullable CompoundTag compound) -
keyPress
-
charTyped
-
setup
-
getClipboard
-
setClipboard
-
tick
public void tick()
-