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 MinecraftClient
client
private Clipboard
clipboard
private long
debugCrashElapsedTime
private long
debugCrashLastLogTime
private long
debugCrashStartTime
private boolean
repeatEvents
private boolean
switchF3State
-
Constructor Summary
Constructors Constructor Description Keyboard(MinecraftClient client)
-
Method Summary
Modifier and Type Method Description private void
copyBlock(BlockState state, BlockPos pos, CompoundTag tag)
private void
copyEntity(Identifier id, Vec3d pos, CompoundTag tag)
private void
copyLookAt(boolean bool, boolean bool2)
private void
debugError(String string, Object[] object)
private void
debugWarn(String string, Object[] object)
String
getClipboard()
private void
onChar(long window, int int2, int int3)
void
onKey(long window, int key, int scancode, int int2, int int3)
void
pollDebugCrash()
private boolean
processF3(int key)
void
setClipboard(String string)
void
setRepeatEvents(boolean repeatEvents)
void
setup(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()
-