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

Performs an attack on the specified entity.

chat

Sends the specified message in chat.

closeScreen

Closes the currently open screen.

debug

Performs a debug action using the specified key.

dropItem

Drops the currently held item, optionally dropping the entire stack.

enableMovementFix

Enables movement correction for the current tick. Call on the getRotations event when returning a custom yaw.

getDirection

Returns the direction the player is moving based on input.

getDisplaySize

Returns the dimensions of the Minecraft window as an array [width, height, size].

getForward

Returns the forward movement value of the player.

getFPS

Returns the current frames per second (FPS) of the client.

getFreeMemory

Returns the amount of free memory available to the client.

getMaxMemory

Returns the maximum memory allocated to the client.

getMotion

Returns the motion vector of the local player.

getPlayer

Returns the Entity object of the local player.

getRecordPlaying

Returns the record string above the hotbar.

getRenderArmPitch

Returns the arm pitch of the player.

getRenderArmYaw

Returns the arm yaw of the player.

getResourcePacks

Returns a list of resource packs as an array [name, description].

getRotations

Returns the yaw and pitch to aim at the specified position as an array [yaw, pitch].

getRotationsToBlock

Returns the yaw and pitch to aim at the specified block and face as an array [yaw, pitch].

getRotationsToEntity

Returns the yaw and pitch to aim at the specified entity as an array [yaw, pitch].

getScreen

Returns the name of the currently open screen.

getServerDirection

Returns the server yaw of the player.

getServerIP

Returns the IP address of the connected server.

getStrafe

Returns the strafe movement value of the player.

getSubTitle

Returns the current subtitle on screen.

getTabFooter

Returns the footer in the tablist.

getTabHeader

Returns the header in the tablist.

getTitle

Returns the current title on screen.

getTotalMemory

Returns the total memory currently in use by the client.

getUID

Returns the Raven client unique identifier.

getUser

Returns the Raven client username.

inFocus

Returns true if the minecraft instance is in focus.

isCreative

Returns true if the player is in creative mode.

isDiagonal

Returns true if the player is moving diagonally.

isEnemy

Returns true if the specified username is on the enemy list.

isFacingDiagonal

Returns true if the player is facing diagonally.

isFlying

Returns true if the player is currently flying.

isFriend

Returns true if the specified username is on the friends list.

isJump

Returns true if the player is currently jumping.

isMoving

Returns true if the player is actively moving.

isRiding

Returns true if the player is riding another entity.

isSinglePlayer

Returns true if the player is in a single-player world.

isSneak

Returns true if the player is crouched.

isSpectator

Returns true if the player is in gamemode spectator.

jump

Makes the player perform a jump.

log

Writes the specified message to latest.log.

ping

Plays a ping sound.

placeBlock

Places a block at the specified target with a defined hit vector.

playSound

Plays the specified sound with the given volume and pitch.

print

Prints the specified message to the chat.

processPacket

Sends a serverside packet to yourself.

processPacketNoEvent

Sends a serverside packet to yourself without triggering events.

raycastBlock

Performs a raycast and returns the position, offset, and face of the hit block.

property
index
type

position

0

Vec3

offset

1

Vec3

face

2

String

raycastEntity

Performs a raycast and returns the hit entity, offset, and squared distance.

property
index
type

entity

0

Entity

offset

1

Vec3

distance^2

2

double

removeEnemy

Removes the specified username from the enemy list.

removeFriend

Removes the specified player from the friends list.

removePotionEffect

Removes a potion effect by its ID client-side.

sendPacket

Sends the specified packet to the server.

sendPacketNoEvent

Sends the specified packet to the server without triggering events.

setFlying

Sets the flying state of the player

setForward

Sets the forward movement value of the player.

setItemInUse

Activates the using animation on the held item of the player.

setJump

Sets the jumping state of the player.

setMotion

Sets the motion vector of the player.

setRenderArmPitch

Sets the arm pitch of the player.

setRenderArmYaw

Sets the arm yaw of the player.

setSneak

Sets the sneaking state of the player.

setSpeed

Sets the movement speed of the player.

setSprinting

Sets the sprinting state of the player.

setSpeedForward

Sets the forward speed of the player.

setStrafe

Sets the strafe movement value of the player.

setTimer

Sets the speed multiplier of the player.

sleep

Pauses execution on the current thread for the specified duration in milliseconds.

swing

Performs an arm swing for the player.

time

Returns the current system time in milliseconds.

Last updated