Class KeyboardHandler

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

public class KeyboardHandler extends Object
  • Field Details

    • 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)
    • debugComponent

      private void debugComponent(ChatFormatting formatting, Component message)
    • debugFeedbackComponent

      private void debugFeedbackComponent(Component message)
    • debugFeedbackTranslated

      private void debugFeedbackTranslated(String message, Object... args)
    • debugWarningTranslated

      private void debugWarningTranslated(String message, Object... args)
    • debugFeedback

      private void debugFeedback(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()