client

Client related functions

addEnemy

client.addEnemy(String username);

Adds a player to the enemy list.

addFriend

client.addFriend(String username);

Adds a player to the friends list.

allowFlying

boolean allowFlying = client.allowFlying();

Returns whether you are able to fly or not.

async

client.async(() -> {});

Allows for concurrent execution, meaning this code runs independently of the main thread, enabling tasks to be processed in parallel without pausing the main thread.

attack

client.attack(Entity entity);

Attacks an entity.

chat

client.chat(String message);

Sends a message in chat.

closeScreen

client.closeScreen();

Closes the current screen.

dropItem

client.dropItem(boolean dropStack);

Drops your current held item.

getDirection

String direction = client.getDirection();

Returns the direction the local player is moving based on input.

getDisplaySize

int[] displaySize = client.getDisplaySize();

Returns the size of the minecraft window.

propertyindex

width

0

height

1

getForward

float forward = client.getForward();

Returns the local player's forward.

getFps

int fps = client.getFPS();

Returns the client's current FPS.

getFreeMemory

long memory = client.getFreeMemory();

Returns the client's current free memory.

getMotion

Vec3 motion = client.getMotion();

Returns the local player's motion.

getPlayer

Entity player = client.getPlayer();

Returns the local player entity.

getUID

int uid = client.getUID();

Returns your raven id.

getUser

String username = client.getUser()

Returns your raven username.

getRenderArmPitch

float armPitch = client.getRenderArmPitch();

Returns the local player's arm pitch.

getRotations

float[] rotations = client.getRotations(Vec3 position);

Returns the yaw and pitch to aim at a specified position.

propertyindextype

yaw

0

float

pitch

1

float

getRotationsToBlock

float[] rotations = client.getRotationsToBlock(Vec3 position, String face);

Returns the yaw and pitch to aim at a specified block. Providing a block face to aim at is optional.

propertyindextype

yaw

0

float

pitch

1

float

getRotationsToEntity

float[] rotations = client.getRotationsToEntity(Entity entity);

Returns the yaw and pitch to aim at a specified entity.

propertyindextype

yaw

0

float

pitch

1

float

getScreen

String screen = client.getScreen();

Returns the client's current screen.

getServerIP

String serverIP = client.getServerIP();

Returns the current server's IP address.

getStrafe

float strafe = client.getStrafe();

Returns the local player's strafe.

getTotalMemory

long memory = client.getTotalMemory();

Returns the client's current total memory.

getWorld

World world = client.getWorld();

Returns the local player's current world.

world

isCreative

boolean creative = client.isCreative();

Returns whether you are in creative mode or not.

isDiagonal

boolean diagonal = client.isDiagonal();

Returns whether you are diagonal or not.

isEnemy

boolean isEnemy = client.isEnemy(String username);

Returns whether the given specified is an enemy or not.

isFacingDiagonal

boolean diagonal = client.isFacingDiagonal();

Returns whether you are facing diagonal or not.

isFlying

boolean flying = client.isFlying();

Returns whether you are flying or not.

isFriend

boolean isFriend = client.isFriend(String username);

Returns whether the specified entity is a friend or not.

isJump

boolean jump = client.isJump();

Checks whether the local player is jumping or not.

isMoving

boolean moving = client.isMoving();

Checks whether the local player is moving or not.

isSingleplayer

boolean singleplayer = client.isSinglePlayer();

Returns whether the local world is singleplayer or not.

jump

client.jump();

Makes the local player jump.

log

client.log(String message);

Prints a message in latest.log.

ping

client.ping();

Plays a ping noise.

placeBlock

client.placeBlock(Vec3 target, String side, Vec3 hitVec); 

Places a block on the target with the specified hit vector.

playSound

client.playSound(String name, float volume, float pitch);

Plays a specified sound.

print

client.print(String message);

Prints a message in chat.

removeEnemy

client.removeEnemy(String username);

Removes a player from the enemy list.

removeFriend

client.removeFriend(String username);

Removes a player from the friends list.

sendPacket

client.sendPacket(CPacket packet);

Sends a packet to the server.

sendPacketNoEvent

client.sendPacketNoEvent(CPacket packet);

Sends a packet to the server with no event.

setFlying

client.setFlying(boolean flying);

Sets local player's fly state.

setForward

client.setForward(float forward);

Sets the local player's forward.

setJump

client.setJump(boolean jump);

Sets the local player's jumping.

setRenderArmPitch

client.setRenderArmPitch(float pitch);

Sets the local player's arm pitch.

setMotion

client.setMotion(Vec3 motion);

Sets the local player's motion.

setSneak

client.setSneak(boolean sneak);

Sets the local player's sneaking.

setSprinting

client.setSprinting(boolean sprinting);

Sets the local player's sprinting.

setSpeed

client.setSpeed(double speed);

Sets the local player's speed.

setStrafe

client.setStrafe(float strafe);

Sets the local player's strafe.

setTimer

client.setTimer(float timer);

Sets a gamespeed multiplier.

sleep

client.sleep(int ms);

Delays the execution of the current thread for a specified duration.

swing

client.swing();

Swings the local player's arm.

time

long time = client.time();

Returns the current time in milliseconds.

Last updated