client
Client related functions
addEnemy
client.addEnemy(String username);
Adds the specified player to your enemies list.
addFriend
client.addFriend(String username);
Adds the specified player to your friends list.
allowEditing
boolean allowEditing = client.allowEditing();
Returns true if the player can edit the world.
allowFlying
boolean allowFlying = client.allowFlying();
Returns true if the player has the ability to fly.
async
client.async(() -> {});
Executes a task asynchronously, allowing it to run independently of the main thread.
attack
client.attack(Entity entity);
Performs an attack on the specified entity.
chat
client.chat(String message);
Sends the specified message in chat.
closeScreen
client.closeScreen();
Closes the currently open screen.
debug
String key = client.debug(String key);
Performs a debug action using the specified key.
dropItem
client.dropItem(boolean dropStack);
Drops the currently held item, optionally dropping the entire stack.
getDirection
String direction = client.getDirection();
Returns the direction the player is moving based on input.
getDisplaySize
int[] displaySize = client.getDisplaySize();
Returns the dimensions of the Minecraft window as an array [width, height, size]
.
getForward
float forward = client.getForward();
Returns the forward movement value of the player.
getFPS
int fps = client.getFPS();
Returns the current frames per second (FPS) of the client.
getFreeMemory
long memory = client.getFreeMemory();
Returns the amount of free memory available to the client.
getMaxMemory
long memory = client.getMaxMemory();
Returns the maximum memory allocated to the client.
getMotion
Vec3 motion = client.getMotion();
Returns the motion vector of the local player.
getPlayer
Entity player = client.getPlayer();
Returns the Entity object of the local player.
getRecordPlaying
String record = client.getRecordPlaying();
Returns the record string above the hotbar.
getRenderArmPitch
float pitch = client.getRenderArmPitch();
Returns the arm pitch of the player.
getRenderArmYaw
float yaw = client.getRenderArmYaw();
Returns the arm yaw of the player.
getResourcePacks
List<String[]> packs = client.getResourcePacks();
Returns a list of resource packs as an array [name, description]
.
getRotations
float[] rotations = client.getRotations(Vec3 position);
Returns the yaw and pitch to aim at the specified position as an array [yaw, pitch]
.
getRotationsToBlock
float[] rotations = client.getRotationsToBlock(Vec3 position, String face);
float[] rotations = client.getRotationsToBlock(Vec3 position);
Returns the yaw and pitch to aim at the specified block and face as an array [yaw, pitch]
.
getRotationsToEntity
float[] rotations = client.getRotationsToEntity(Entity entity);
Returns the yaw and pitch to aim at the specified entity as an array [yaw, pitch]
.
getScreen
String screen = client.getScreen();
Returns the name of the currently open screen.
getServerDirection
float yaw = client.getServerDirection(PlayerState state);
Returns the server yaw of the player.
getServerIP
String serverIP = client.getServerIP();
Returns the IP address of the connected server.
getStrafe
float strafe = client.getStrafe();
Returns the strafe movement value of the player.
getSubTitle
String subtitle = client.getSubTitle();
Returns the current subtitle on screen.
getTabFooter
String footer = client.getTabFooter();
Returns the footer in the tablist.
getTabHeader
String header = client.getTabHeader();
Returns the header in the tablist.
getTitle
String title = client.getTitle();
Returns the current title on screen.
getTotalMemory
long memory = client.getTotalMemory();
Returns the total memory currently in use by the client.
getUID
int uid = client.getUID();
Returns the Raven client unique identifier.
getUser
String username = client.getUser()
Returns the Raven client username.
inFocus
boolean focused = client.inFocus();
Returns true if the minecraft instance is in focus.
isCreative
boolean creative = client.isCreative();
Returns true if the player is in creative mode.
isDiagonal
boolean diagonal = client.isDiagonal();
Returns true if the player is moving diagonally.
isEnemy
boolean isEnemy = client.isEnemy(String username);
Returns true if the specified username is on the enemy list.
isFacingDiagonal
boolean diagonal = client.isFacingDiagonal();
Returns true if the player is facing diagonally.
isFlying
boolean flying = client.isFlying();
Returns true if the player is currently flying.
isFriend
boolean isFriend = client.isFriend(String username);
Returns true if the specified username is on the friends list.
isJump
boolean jump = client.isJump();
Returns true if the player is currently jumping.
isMoving
boolean moving = client.isMoving();
Returns true if the player is actively moving.
isRiding
boolean riding = client.isRiding();
Returns true if the player is riding another entity.
isSinglePlayer
boolean singleplayer = client.isSinglePlayer();
Returns true if the player is in a single-player world.
isSneak
boolean sneaking = client.isSneak();
Returns true if the player is crouched.
isSpectator
boolean spectating = client.isSpectator();
Returns true if the player is in gamemode spectator.
jump
client.jump();
Makes the player perform a jump.
log
client.log(Object message);
Writes the specified message to latest.log
.
ping
client.ping();
Plays a ping sound.
placeBlock
boolean placed = client.placeBlock(Vec3 target, String side, Vec3 hitVec);
Places a block at the specified target with a defined hit vector.
playSound
client.playSound(String name, float volume, float pitch);
Plays the specified sound with the given volume and pitch.
print
client.print(Object message);
Prints the specified message to the chat.
processPacket
client.processPacket(SPacket packet);
Sends a serverside packet to yourself.
processPacketNoEvent
client.processPacketNoEvent(SPacket packet);
Sends a serverside packet to yourself without triggering events.
raycastBlock
Object[] block = client.raycastBlock(double distance, float yaw, float pitch);
Performs a raycast and returns the position, offset, and face of the hit block.
position
0
Vec3
offset
1
Vec3
face
2
String
raycastEntity
Object[] entity = client.raycastEntity(double distance, float yaw, float pitch);
Performs a raycast and returns the hit entity, offset, and squared distance.
entity
0
Entity
offset
1
Vec3
distance^2
2
double
removeEnemy
client.removeEnemy(String username);
Removes the specified username from the enemy list.
removeFriend
client.removeFriend(String username);
Removes the specified player from the friends list.
removePotionEffect
client.removePotionEffect(int id);
Removes a potion effect by its ID client-side.
sendPacket
client.sendPacket(CPacket packet);
Sends the specified packet to the server.
sendPacketNoEvent
client.sendPacketNoEvent(CPacket packet);
Sends the specified packet to the server without triggering events.
setFlying
client.setFlying(boolean flying);
Sets the flying state of the player
setForward
client.setForward(float forward);
Sets the forward movement value of the player.
setItemInUse
client.setItemInUse(int count);
Activates the using animation on the held item of the player.
setJump
client.setJump(boolean jump);
Sets the jumping state of the player.
setMotion
client.setMotion(Vec3 motion);
Sets the motion vector of the player.
setRenderArmPitch
client.setRenderArmPitch(float pitch);
Sets the arm pitch of the player.
setRenderArmYaw
client.setRenderArmYaw(float yaw);
Sets the arm yaw of the player.
setSneak
client.setSneak(boolean sneak);
Sets the sneaking state of the player.
setSpeed
client.setSpeed(double speed);
Sets the movement speed of the player.
setSprinting
client.setSprinting(boolean sprinting);
Sets the sprinting state of the player.
setSpeedForward
client.setSpeedForward(double speed);
Sets the forward speed of the player.
setStrafe
client.setStrafe(float strafe);
Sets the strafe movement value of the player.
setTimer
client.setTimer(float timer);
Sets the speed multiplier of the player.
sleep
client.sleep(int ms);
Pauses execution on the current thread for the specified duration in milliseconds.
swing
client.swing();
Performs an arm swing for the player.
time
long time = client.time();
Returns the current system time in milliseconds.
Last updated