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 pMinecraft)
  • Method Details

    • handleChunkDebugKeys

      private boolean handleChunkDebugKeys(int pKeyCode)
    • debugComponent

      private void debugComponent(ChatFormatting pFormatting, Component pMessage)
    • debugFeedbackComponent

      private void debugFeedbackComponent(Component p_167823_)
    • debugFeedbackTranslated

      private void debugFeedbackTranslated(String pMessage, Object... pArgs)
    • debugWarningTranslated

      private void debugWarningTranslated(String pMessage, Object... pArgs)
    • debugFeedback

      private void debugFeedback(String pMessage, Object... pArgs)
    • 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

      public String getClipboard()
    • setClipboard

      public void setClipboard(String pString)
    • tick

      public void tick()