@Environment(value=CLIENT) public class Keyboard extends Object
Modifier and Type | Field and Description |
---|---|
private MinecraftClient |
client |
private Clipboard |
clipboard |
private long |
debugCrashElapsedTime |
private long |
debugCrashLastLogTime |
private long |
debugCrashStartTime |
private boolean |
repeatEvents |
private boolean |
switchF3State |
Constructor and Description |
---|
Keyboard(MinecraftClient client) |
Modifier and Type | Method and 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) |
private final MinecraftClient client
private boolean repeatEvents
private final Clipboard clipboard
private long debugCrashStartTime
private long debugCrashLastLogTime
private long debugCrashElapsedTime
private boolean switchF3State
public Keyboard(MinecraftClient client)
private boolean processF3(int key)
private void copyLookAt(boolean bool, boolean bool2)
private void copyBlock(BlockState state, BlockPos pos, @Nullable CompoundTag tag)
private void copyEntity(Identifier id, Vec3d pos, @Nullable CompoundTag tag)
public void onKey(long window, int key, int scancode, int int2, int int3)
private void onChar(long window, int int2, int int3)
public void setRepeatEvents(boolean repeatEvents)
public void setup(long long2)
public String getClipboard()
public void setClipboard(String string)
public void pollDebugCrash()