Package net.minecraft.client
Class Keyboard
java.lang.Object
net.minecraft.client.Keyboard
@Environment(CLIENT) public class Keyboard extends Object
-
Field Summary
Fields Modifier and Type Field Description private MinecraftClientclientprivate Clipboardclipboardprivate longdebugCrashElapsedTimeprivate longdebugCrashLastLogTimeprivate longdebugCrashStartTimeprivate booleanrepeatEventsprivate booleanswitchF3State -
Constructor Summary
Constructors Constructor Description Keyboard(MinecraftClient client) -
Method Summary
Modifier and Type Method Description private voidcopyBlock(BlockState state, BlockPos pos, CompoundTag tag)private voidcopyEntity(Identifier id, Vec3d pos, CompoundTag tag)private voidcopyLookAt(boolean bool, boolean bool2)private voiddebugError(String string, Object[] object)private voiddebugWarn(String string, Object[] object)StringgetClipboard()private voidonChar(long window, int int2, int int3)voidonKey(long window, int key, int scancode, int int2, int int3)voidpollDebugCrash()private booleanprocessF3(int key)voidsetClipboard(String string)voidsetRepeatEvents(boolean repeatEvents)voidsetup(long long2)
-
Field Details
-
client
-
repeatEvents
private boolean repeatEvents -
clipboard
-
debugCrashStartTime
private long debugCrashStartTime -
debugCrashLastLogTime
private long debugCrashLastLogTime -
debugCrashElapsedTime
private long debugCrashElapsedTime -
switchF3State
private boolean switchF3State
-
-
Constructor Details
-
Keyboard
-
-
Method Details
-
debugWarn
-
debugError
-
processF3
private boolean processF3(int key) -
copyLookAt
private void copyLookAt(boolean bool, boolean bool2) -
copyBlock
-
copyEntity
-
onKey
public void onKey(long window, int key, int scancode, int int2, int int3) -
onChar
private void onChar(long window, int int2, int int3) -
setRepeatEvents
public void setRepeatEvents(boolean repeatEvents) -
setup
public void setup(long long2) -
getClipboard
-
setClipboard
-
pollDebugCrash
public void pollDebugCrash()
-