Class KeyboardHandler

java.lang.Object
net.minecraft.client.KeyboardHandler

public class KeyboardHandler extends Object
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • DEBUG_CRASH_TIME

      public static final int DEBUG_CRASH_TIME
      See Also:
    • minecraft

      private final Minecraft minecraft
    • clipboardManager

      private final ClipboardManager clipboardManager
    • debugCrashKeyTime

      private long debugCrashKeyTime
    • debugCrashKeyReportedTime

      private long debugCrashKeyReportedTime
    • debugCrashKeyReportedCount

      private long debugCrashKeyReportedCount
    • handledDebugKey

      private boolean handledDebugKey
  • Constructor Details

    • KeyboardHandler

      public KeyboardHandler(Minecraft minecraft)
  • Method Details

    • handleChunkDebugKeys

      private boolean handleChunkDebugKeys(int keyCode)
    • showDebugChat

      private void showDebugChat(Component message)
    • decorateDebugComponent

      private static Component decorateDebugComponent(ChatFormatting formatting, Component component)
    • debugWarningComponent

      private void debugWarningComponent(Component message)
    • debugFeedbackComponent

      private void debugFeedbackComponent(Component message)
    • debugFeedbackTranslated

      private void debugFeedbackTranslated(String message)
    • debugFeedbackFormatted

      private void debugFeedbackFormatted(String message, Object... args)
    • handleDebugKeys

      private boolean handleDebugKeys(int key)
    • copyRecreateCommand

      private void copyRecreateCommand(boolean privileged, boolean askServer)
    • copyCreateBlockCommand

      private void copyCreateBlockCommand(BlockState state, BlockPos pos, @Nullable CompoundTag compound)
    • 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

      public String getClipboard()
    • setClipboard

      public void setClipboard(String string)
    • tick

      public void tick()