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 static final org.slf4j.Logger
private final Minecraft
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
charTyped
(long pWindowPointer, int pCodePoint, int pModifiers) private void
copyCreateBlockCommand
(BlockState pState, BlockPos pPos, CompoundTag pCompound) private void
copyCreateEntityCommand
(ResourceLocation pEntityId, Vec3 pPos, CompoundTag pCompound) private void
copyRecreateCommand
(boolean pPrivileged, boolean pAskServer) private void
debugFeedbackComponent
(Component p_167823_) private void
debugFeedbackFormatted
(String pMessage, Object... pArgs) private void
debugFeedbackTranslated
(String pMessage) private void
debugWarningComponent
(Component pMessage) private static Component
decorateDebugComponent
(ChatFormatting pFormatting, Component pComponent) private boolean
handleChunkDebugKeys
(int pKeyCode) private boolean
handleDebugKeys
(int pKey) void
keyPress
(long pWindowPointer, int pKey, int pScanCode, int pAction, int pModifiers) void
setClipboard
(String pString) void
setup
(long pWindow) private void
showDebugChat
(Component p_415869_) void
tick()
-
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
private boolean handleChunkDebugKeys(int pKeyCode) -
showDebugChat
-
decorateDebugComponent
-
debugWarningComponent
-
debugFeedbackComponent
-
debugFeedbackTranslated
-
debugFeedbackFormatted
-
handleDebugKeys
private boolean handleDebugKeys(int pKey) -
copyRecreateCommand
private void copyRecreateCommand(boolean pPrivileged, boolean pAskServer) -
copyCreateBlockCommand
private void copyCreateBlockCommand(BlockState pState, BlockPos pPos, @Nullable CompoundTag pCompound) -
copyCreateEntityCommand
private void copyCreateEntityCommand(ResourceLocation pEntityId, Vec3 pPos, @Nullable CompoundTag pCompound) -
keyPress
public void keyPress(long pWindowPointer, int pKey, int pScanCode, int pAction, int pModifiers) -
charTyped
private void charTyped(long pWindowPointer, int pCodePoint, int pModifiers) -
setup
public void setup(long pWindow) -
getClipboard
-
setClipboard
-
tick
public void tick()
-