# Table of Contents - [imports | Raven B4](#imports-raven-b4) - [world | Raven B4](#world-raven-b4) - [tile entity | Raven B4](#tile-entity-raven-b4) - [keybinds | Raven B4](#keybinds-raven-b4) - [modules | Raven B4](#modules-raven-b4) - [config | Raven B4](#config-raven-b4) - [gl | Raven B4](#gl-raven-b4) - [entity | Raven B4](#entity-raven-b4) - [inventory | Raven B4](#inventory-raven-b4) - [render | Raven B4](#render-raven-b4) - [util | Raven B4](#util-raven-b4) - [events | Raven B4](#events-raven-b4) - [packets | Raven B4](#packets-raven-b4) - [bridge | Raven B4](#bridge-raven-b4) - [client | Raven B4](#client-raven-b4) - [http | Raven B4](#http-raven-b4) - [json | Raven B4](#json-raven-b4) - [network | Raven B4](#network-raven-b4) - [objects | Raven B4](#objects-raven-b4) - [Unknown](#unknown) - [Unknown](#unknown) - [Unknown](#unknown) - [Unknown](#unknown) - [Unknown](#unknown) - [Unknown](#unknown) - [Unknown](#unknown) - [Unknown](#unknown) - [imports | Raven B4](#imports-raven-b4) - [Unknown](#unknown) - [Unknown](#unknown) - [Unknown](#unknown) - [Unknown](#unknown) - [Unknown](#unknown) - [Unknown](#unknown) - [Unknown](#unknown) - [Unknown](#unknown) - [Unknown](#unknown) - [Unknown](#unknown) - [Unknown](#unknown) --- # imports | Raven B4 For the complete documentation index, see [llms.txt](https://blowsy.gitbook.io/raven-b4/llms.txt) . This page is also available as [Markdown](https://blowsy.gitbook.io/raven-b4/documentation/imports.md) . imports ArrayList Arrays AtomicBoolean AtomicInteger AtomicLong Color Comparator ConcurrentHashMap HashMap HashSet Iterator LinkedHashMap List Map Matcher Random Regex Set Last updated 1 year ago --- # world | Raven B4 For the complete documentation index, see [llms.txt](https://blowsy.gitbook.io/raven-b4/llms.txt) . This page is also available as [Markdown](https://blowsy.gitbook.io/raven-b4/documentation/world.md) . ### [](https://blowsy.gitbook.io/raven-b4/documentation/world#getblockat) getBlockAt Copy Block block = world.getBlockAt(Vec3 position); Returns a block at a specified position. ### [](https://blowsy.gitbook.io/raven-b4/documentation/world#getdimension) getDimension Copy String dimension = world.getDimension(); Returns the current dimension name. ### [](https://blowsy.gitbook.io/raven-b4/documentation/world#getentities) getEntities Copy List entities = world.getEntities(); Returns the entity list. ### [](https://blowsy.gitbook.io/raven-b4/documentation/world#getentitybyid) getEntityById Copy Entity entity = world.getEntityById(int entityId); Returns an entity from their entity ID. ### [](https://blowsy.gitbook.io/raven-b4/documentation/world#getnetworkplayers) getNetworkPlayers Copy List networkPlayers = world.getNetworkPlayers(); Returns the network player list. ### [](https://blowsy.gitbook.io/raven-b4/documentation/world#getplayerentities) getPlayerEntities Copy List players = world.getPlayerEntities(); Returns the player entity list. ### [](https://blowsy.gitbook.io/raven-b4/documentation/world#getscoreboard) getScoreboard Copy List scoreboard = world.getScoreboard(); Returns the scoreboard. ### [](https://blowsy.gitbook.io/raven-b4/documentation/world#getteams) getTeams Copy Map> teamMap = world.getTeams(); Returns the team map. ### [](https://blowsy.gitbook.io/raven-b4/documentation/world#gettileentities) getTileEntities Copy List tileEntities = world.getTileEntities(); Returns the tile entity list. Last updated 1 year ago --- # tile entity | Raven B4 For the complete documentation index, see [llms.txt](https://blowsy.gitbook.io/raven-b4/llms.txt) . This page is also available as [Markdown](https://blowsy.gitbook.io/raven-b4/documentation/tile-entity.md) . Required: world.getTileEntities(); [objects](https://blowsy.gitbook.io/raven-b4/documentation/objects) ### [](https://blowsy.gitbook.io/raven-b4/documentation/tile-entity#getposition) getPosition Copy Vec3 position = tileEntity.getPosition(); Returns the position of a tile entity. ### [](https://blowsy.gitbook.io/raven-b4/documentation/tile-entity#getskulldata) getSkullData Copy Object[] skullData = tileEntity.getSkullData(); Returns the metadata of a skull. property index type type 0 int rotation 1 int name 2 String uuid 3 String Last updated 1 year ago --- # keybinds | Raven B4 For the complete documentation index, see [llms.txt](https://blowsy.gitbook.io/raven-b4/llms.txt) . This page is also available as [Markdown](https://blowsy.gitbook.io/raven-b4/documentation/keybinds.md) . Minecraft Keycodes: [https://minecraft.fandom.com/wiki/Key\_codes](https://minecraft.fandom.com/wiki/Key_codes) ### [](https://blowsy.gitbook.io/raven-b4/documentation/keybinds#getkeycode) getKeycode Copy int code = keybinds.getKeycode(String key); Returns the keycode for a specified minecraft keybind. ### [](https://blowsy.gitbook.io/raven-b4/documentation/keybinds#getkeyindex) getKeyIndex Copy int code = keybinds.getKeyIndex(String key); Returns the keycode for a specified key. ### [](https://blowsy.gitbook.io/raven-b4/documentation/keybinds#getmouseposition) getMousePosition Copy int[] position = keybinds.getMousePosition(); Returns the position of the cursor as an array `[x, y]`. ### [](https://blowsy.gitbook.io/raven-b4/documentation/keybinds#iskeydown) isKeyDown Copy boolean keyDown = keybinds.isKeyDown(int key); Returns true if the specified key is being pressed. ### [](https://blowsy.gitbook.io/raven-b4/documentation/keybinds#ismousedown) isMouseDown Copy boolean mouseDown = keybinds.isMouseDown(int mouseButton); Returns true if the specified mouse button is currently pressed. Use `0` for left click, `1` for right click, and `2` for middle click. ### [](https://blowsy.gitbook.io/raven-b4/documentation/keybinds#ispressed) isPressed Copy boolean isPressed = keybinds.isPressed(String key); Returns true if the specified keybind is being pressed. ### [](https://blowsy.gitbook.io/raven-b4/documentation/keybinds#leftclick) leftClick Copy keybinds.leftClick(); Simulates a left click on the mouse. ### [](https://blowsy.gitbook.io/raven-b4/documentation/keybinds#rightclick) rightClick Copy keybinds.rightClick(); Simulates a right click on the mouse. ### [](https://blowsy.gitbook.io/raven-b4/documentation/keybinds#setpressed) setPressed Copy keybinds.setPressed(String key, boolean pressed); Sets the pressed state of a specified keybind. Taken from `%appdata%/.minecraft/options.txt`. Last updated 1 year ago --- # modules | Raven B4 For the complete documentation index, see [llms.txt](https://blowsy.gitbook.io/raven-b4/llms.txt) . This page is also available as [Markdown](https://blowsy.gitbook.io/raven-b4/documentation/modules.md) . The variable `scriptName` is a global variable that is set to the local script name. ### [](https://blowsy.gitbook.io/raven-b4/documentation/modules#disable) disable Copy modules.disable(String moduleName); Disables a module. ### [](https://blowsy.gitbook.io/raven-b4/documentation/modules#enable) enable Copy modules.enable(String moduleName); Enables a module. ### [](https://blowsy.gitbook.io/raven-b4/documentation/modules#getbedauraposition) getBedAuraPosition Copy Vec3 bedAuraPosition = modules.getBedAuraPosition(); Returns the position Bed Aura is targetting. ### [](https://blowsy.gitbook.io/raven-b4/documentation/modules#getbedauraprogress) getBedAuraProgress Copy float[] progress = modules.getBedAuraProgress(); Returns the progress of the targetted block as an array `[modified, vanilla]`. ### [](https://blowsy.gitbook.io/raven-b4/documentation/modules#getbutton) getButton Copy boolean buttonValue = modules.getButton(String moduleName, String name); Returns true if the specified button is enabled. ### [](https://blowsy.gitbook.io/raven-b4/documentation/modules#getcategories) getCategories Copy Map categories = modules.getCategories(); Retrieves each category with a list of all modules stored under them. ### [](https://blowsy.gitbook.io/raven-b4/documentation/modules#getkeypressed) getKeyPressed Copy boolean pressed = modules.getKeyPressed(String moduleName, String setting); Returns true if the specified keybind is pressed. ### [](https://blowsy.gitbook.io/raven-b4/documentation/modules#getkillauratarget) getKillAuraTarget Copy Entity killAuraTarget = modules.getKillAuraTarget(); Returns the entity killaura is targetting. ### [](https://blowsy.gitbook.io/raven-b4/documentation/modules#getsettings) getSettings Copy Map settings = modules.getSettings(String name); Retrieves a map of a module's settings. ### [](https://blowsy.gitbook.io/raven-b4/documentation/modules#getslider) getSlider Copy double value = modules.getSlider(String moduleName, String name); Retrieves the current value of a slider. For string arrays, it will return the index of the array. ### [](https://blowsy.gitbook.io/raven-b4/documentation/modules#isenabled) isEnabled Copy boolean enabled = modules.isEnabled(String moduleName); Returns true if the specified module is enabled. ### [](https://blowsy.gitbook.io/raven-b4/documentation/modules#ishidden) isHidden Copy boolean hidden = modules.isHidden(String moduleName); Returns true if the specifiec module is hidden. ### [](https://blowsy.gitbook.io/raven-b4/documentation/modules#isscaffolding) isScaffolding Copy boolean scaffolding = modules.isScaffolding(); Returns true if the player is scaffolding. ### [](https://blowsy.gitbook.io/raven-b4/documentation/modules#istowering) isTowering Copy boolean towering = modules.isTowering(); Returns true if the player is towering. ### [](https://blowsy.gitbook.io/raven-b4/documentation/modules#registerbutton) registerButton Copy modules.registerButton(String name, boolean default); modules.registerButton(String group, String name, boolean default); Registers a toggleable button with a default value. ### [](https://blowsy.gitbook.io/raven-b4/documentation/modules#registerdescription) registerDescription Copy modules.registerDescription(String description); Registers a description. ### [](https://blowsy.gitbook.io/raven-b4/documentation/modules#registergroup) registerGroup Copy modules.registerGroup(String group); Registers a group. ### [](https://blowsy.gitbook.io/raven-b4/documentation/modules#registerkey) registerKey Copy modules.registerKey(String name, int key); modules.registerKey(String group, String name, int key); Registers a keybind. ### [](https://blowsy.gitbook.io/raven-b4/documentation/modules#registerslider) registerSlider Copy modules.registerSlider(String name, String suffix, double default, double minimum, double maximum, double interval); modules.registerSlider(String name, String suffix, int default, String[] stringArray); modules.registerSlider(String group, String name, String suffix, double default, double minimum, double maximum, double interval); modules.registerSlider(String group, String name, String suffix, int default, String[] stringArray); Registers a slider. Can be set to either display numbers, or an array of strings. ### [](https://blowsy.gitbook.io/raven-b4/documentation/modules#setbutton) setButton Copy modules.setButton(String moduleName, String name, boolean value); Sets the value for a specified button. ### [](https://blowsy.gitbook.io/raven-b4/documentation/modules#setkey) setKey Copy modules.setKey(String moduleName, String name, int code); Sets the key for a specified keybind. ### [](https://blowsy.gitbook.io/raven-b4/documentation/modules#setslider) setSlider Copy modules.setSlider(String moduleName, String name, double value); Sets the value for a specified slider. Last updated 1 year ago --- # config | Raven B4 For the complete documentation index, see [llms.txt](https://blowsy.gitbook.io/raven-b4/llms.txt) . This page is also available as [Markdown](https://blowsy.gitbook.io/raven-b4/documentation/config.md) . ### [](https://blowsy.gitbook.io/raven-b4/documentation/config#get) get Copy String value = config.get(String key); Gets a value from the config. ### [](https://blowsy.gitbook.io/raven-b4/documentation/config#set) set Copy boolean set = config.set(String key, String value); Sets a value in the config. Last updated 1 year ago --- # gl | Raven B4 For the complete documentation index, see [llms.txt](https://blowsy.gitbook.io/raven-b4/llms.txt) . This page is also available as [Markdown](https://blowsy.gitbook.io/raven-b4/documentation/gl.md) . ### [](https://blowsy.gitbook.io/raven-b4/documentation/gl#alpha) alpha Copy gl.alpha(boolean alpha); Enables or disables alpha testing. ### [](https://blowsy.gitbook.io/raven-b4/documentation/gl#begin) begin Copy gl.begin(int mode); Starts specifying vertices for a primitive shape. ### [](https://blowsy.gitbook.io/raven-b4/documentation/gl#blend) blend Copy gl.blend(boolean blend); Enables or disables blending. ### [](https://blowsy.gitbook.io/raven-b4/documentation/gl#color) color Copy gl.color(float r, float g, float b, float a); Sets the current drawing color with the specified RGBA values. ### [](https://blowsy.gitbook.io/raven-b4/documentation/gl#cull) cull Copy gl.cull(boolean cull); Enables or disables face culling. ### [](https://blowsy.gitbook.io/raven-b4/documentation/gl#depth) depth Copy gl.depth(boolean depth); Enables or disables depth testing. ### [](https://blowsy.gitbook.io/raven-b4/documentation/gl#depthmask) depthMask Copy gl.depthMask(boolean depthMask); Sets whether writing to the depth buffer is enabled or disabled. ### [](https://blowsy.gitbook.io/raven-b4/documentation/gl#disable) disable Copy gl.disable(int cap); Disables a specific OpenGL capability. ### [](https://blowsy.gitbook.io/raven-b4/documentation/gl#disableitemlighting) disableItemLighting Copy gl.disableItemLighting(); Disables item lighting. ### [](https://blowsy.gitbook.io/raven-b4/documentation/gl#enable) enable Copy gl.enable(int cap); Enables a specific OpenGL capability, such as blending or depth testing. ### [](https://blowsy.gitbook.io/raven-b4/documentation/gl#enableitemlighting) enableItemLighting Copy gl.enableItemLighting(boolean gui); Enables item lighting, optionally for GUI items. ### [](https://blowsy.gitbook.io/raven-b4/documentation/gl#end) end Copy gl.end(); Completes the vertex specification. ### [](https://blowsy.gitbook.io/raven-b4/documentation/gl#lighting) lighting Copy gl.lighting(boolean lighting); Enables or disables lighting. ### [](https://blowsy.gitbook.io/raven-b4/documentation/gl#linesmooth) lineSmooth Copy gl.lineSmooth(boolean lineSmooth); Enables or disables line smoothing. ### [](https://blowsy.gitbook.io/raven-b4/documentation/gl#linewidth) lineWidth Copy gl.lineWidth(float width); Sets the width of lines in OpenGL. ### [](https://blowsy.gitbook.io/raven-b4/documentation/gl#normal) normal Copy gl.normal(float x, float y, float z); Specifies a normal vector for lighting calculations. ### [](https://blowsy.gitbook.io/raven-b4/documentation/gl#pop) pop Copy gl.pop(); Pops the current matrix stack, restoring the previous transformation state. ### [](https://blowsy.gitbook.io/raven-b4/documentation/gl#push) push Copy gl.push(); Pushes the current matrix stack, saving the current transformation state. ### [](https://blowsy.gitbook.io/raven-b4/documentation/gl#rotate) rotate Copy gl.rotate(float angle, float x, float y, float z); Applies rotation to the current transformation matrix around the specified axis. ### [](https://blowsy.gitbook.io/raven-b4/documentation/gl#scale) scale Copy gl.scale(float x, float y, float z); Applies scaling to the current transformation matrix. ### [](https://blowsy.gitbook.io/raven-b4/documentation/gl#scissor) scissor Copy gl.scissor(boolean scissor); Enables or disables scissoring. ### [](https://blowsy.gitbook.io/raven-b4/documentation/gl#scissor-1) scissor Copy gl.scissor(int x, int y, int width, int height); Sets the scissor box to the specified rectangle, restricting rendering operations to the defined area. ### [](https://blowsy.gitbook.io/raven-b4/documentation/gl#texture2d) texture2d Copy gl.texture2d(boolean texture2d); Enables or disables 2D texturing. ### [](https://blowsy.gitbook.io/raven-b4/documentation/gl#translate) translate Copy gl.translate(float x, float y, float z); Applies translation to the current transformation matrix. ### [](https://blowsy.gitbook.io/raven-b4/documentation/gl#vertex2) vertex2 Copy gl.vertex2(float x, float y); Specifies a vertex with 2D coordinates. ### [](https://blowsy.gitbook.io/raven-b4/documentation/gl#vertex3) vertex3 Copy gl.vertex3(float x, float y, float z); Specifies a vertex with 3D coordinates. Last updated 1 year ago --- # entity | Raven B4 For the complete documentation index, see [llms.txt](https://blowsy.gitbook.io/raven-b4/llms.txt) . This page is also available as [Markdown](https://blowsy.gitbook.io/raven-b4/documentation/entity.md) . Assumes variable `entity` is defined. Example: `Entity entity = client.getPlayer();` ### [](https://blowsy.gitbook.io/raven-b4/documentation/entity#distanceto) distanceTo Copy double distance = entity1.getPosition().distanceTo(entity2.getPosition()); Returns the distance to a position in blocks. ### [](https://blowsy.gitbook.io/raven-b4/documentation/entity#distancetoground) distanceToGround Copy double distance = entity1.distanceToGround(); Returns the distance from the entity to the ground. ### [](https://blowsy.gitbook.io/raven-b4/documentation/entity#distancetosq) distanceToSq Copy double distanceSquared = entity1.getPosition().distanceToSq(entity2.getPosition()); Returns the distance to a position in blocks squared. ### [](https://blowsy.gitbook.io/raven-b4/documentation/entity#getabsorption) getAbsorption Copy float absorption = entity.getAbsorption(); Returns the absorption level of the entity. ### [](https://blowsy.gitbook.io/raven-b4/documentation/entity#getair) getAir Copy float air = entity.getAir(); Returns the air level of the entity. ### [](https://blowsy.gitbook.io/raven-b4/documentation/entity#getarmorinslot) getArmorInSlot Copy ItemStack armor = entity.getArmorInSlot(int slot); Returns the specified armor piece the entity is wearing. ### [](https://blowsy.gitbook.io/raven-b4/documentation/entity#getblockposition) getBlockPosition Copy Vec3 blockPosition = entity.getBlockPosition(); Returns the block position of the entity. ### [](https://blowsy.gitbook.io/raven-b4/documentation/entity#getbps) getBPS Copy double bps = entity.getBPS(); Returns the movement speed of the entity in blocks per second. ### [](https://blowsy.gitbook.io/raven-b4/documentation/entity#getdisplayname) getDisplayName Copy String displayName = entity.getDisplayName(); Returns the display name of the entity. ### [](https://blowsy.gitbook.io/raven-b4/documentation/entity#getexperience) getExperience Copy float experience = entity.getExperience(); Returns the experience of the entity. ### [](https://blowsy.gitbook.io/raven-b4/documentation/entity#getexperiencelevel) getExperienceLevel Copy int level = entity.getExperienceLevel(); Returns the experience level of the entity. ### [](https://blowsy.gitbook.io/raven-b4/documentation/entity#geteyeheight) getEyeHeight Copy float eyeHeight = entity.getEyeHeight(); Returns the eye height of the entity. ### [](https://blowsy.gitbook.io/raven-b4/documentation/entity#getfacing) getFacing Copy String facing = entity.getFacing(); Returns which direction the entity is facing. ### [](https://blowsy.gitbook.io/raven-b4/documentation/entity#getfalldistance) getFallDistance Copy float fallDistance = entity.getFallDistance(); Returns the fall distance of the entity. ### [](https://blowsy.gitbook.io/raven-b4/documentation/entity#getfireresistance) getFireResistance Copy int fireResistance = entity.getFireResistance(); Returns the fire resistance of the entity. ### [](https://blowsy.gitbook.io/raven-b4/documentation/entity#getfisher) getFisher Copy Entity fisher = entity.getFisher(); Returns the entity which cast the fishing hook. ### [](https://blowsy.gitbook.io/raven-b4/documentation/entity#gethealth) getHealth Copy float health = entity.getHealth(); Returns the health of the entity. ### [](https://blowsy.gitbook.io/raven-b4/documentation/entity#getheight) getHeight Copy float height = entity.getHeight(); Returns the height of the entity. ### [](https://blowsy.gitbook.io/raven-b4/documentation/entity#gethelditem) getHeldItem Copy ItemStack item = entity.getHeldItem(); Returns the item held by the entity. ### [](https://blowsy.gitbook.io/raven-b4/documentation/entity#gethunger) getHunger Copy int hunger = entity.getHunger(); Returns the hunger level of the entity. ### [](https://blowsy.gitbook.io/raven-b4/documentation/entity#gethurttime) getHurtTime Copy int hurtTime = entity.getHurtTime(); Returns the hurt time of the entity. ### [](https://blowsy.gitbook.io/raven-b4/documentation/entity#getlastposition) getLastPosition Copy Vec3 lastPosition = entity.getLastPosition(); Returns the previous position of the entity. ### [](https://blowsy.gitbook.io/raven-b4/documentation/entity#getmaxhealth) getMaxHealth Copy float maxHealth = entity.getMaxHealth(); Returns the maximum health of the entity. ### [](https://blowsy.gitbook.io/raven-b4/documentation/entity#getmaxhurttime) getMaxHurtTime Copy int maxHurtTime = entity.getMaxHurtTime(); Returns the maximum hurt time of the entity. ### [](https://blowsy.gitbook.io/raven-b4/documentation/entity#getname) getName Copy String name = entity.getName(); Returns the name of the entity. ### [](https://blowsy.gitbook.io/raven-b4/documentation/entity#getnetworkplayer) getNetworkPlayer Copy NetworkPlayer networkPlayer = player.getNetworkPlayer(); Returns the NetworkPlayerInfo object of a player. ### [](https://blowsy.gitbook.io/raven-b4/documentation/entity#getpitch) getPitch Copy float pitch = entity.getPitch(); Returns the pitch of the entity. ### [](https://blowsy.gitbook.io/raven-b4/documentation/entity#getposition) getPosition Copy Vec3 position = entity.getPosition(); Returns the position of the entity. ### [](https://blowsy.gitbook.io/raven-b4/documentation/entity#getpotioneffects) getPotionEffects Copy List effects = entity.getPotionEffects(); Returns the active potion effects of the entity. property index type id 0 int name 1 String amplifier 2 int duration 3 int ### [](https://blowsy.gitbook.io/raven-b4/documentation/entity#getprevpitch) getPrevPitch Copy float pitch = entity.getPrevPitch(); Returns the previous pitch of the entity. ### [](https://blowsy.gitbook.io/raven-b4/documentation/entity#getprevyaw) getPrevYaw Copy float yaw = entity.getPrevYaw(); Returns the previous yaw of the entity. ### [](https://blowsy.gitbook.io/raven-b4/documentation/entity#getriddenbyentity) getRiddenByEntity Copy Entity riddenBy = entity.getRiddenByEntity(); Returns the entity riding the entity. ### [](https://blowsy.gitbook.io/raven-b4/documentation/entity#getridingentity) getRidingEntity Copy Entity riding = entity.getRidingEntity(); Returns the entity the entity is riding. ### [](https://blowsy.gitbook.io/raven-b4/documentation/entity#getsaturation) getSaturation Copy float saturation = entity.getSaturation(); Returns the saturation of the entity. ### [](https://blowsy.gitbook.io/raven-b4/documentation/entity#getserverposition) getServerPosition Copy Vec3 position = entity.getServerPosition(); Returns the server position of the entity. ### [](https://blowsy.gitbook.io/raven-b4/documentation/entity#getspeed) getSpeed Copy double speed = entity.getSpeed(); Returns the speed of the entity. ### [](https://blowsy.gitbook.io/raven-b4/documentation/entity#getswingprogress) getSwingProgress Copy int swingProgress = entity.getSwingProgress(); Returns the swing animation progress of the entity. ### [](https://blowsy.gitbook.io/raven-b4/documentation/entity#getticksexisted) getTicksExisted Copy int ticksExisted = entity.getTicksExisted(); Returns the number of ticks the entity has existed. ### [](https://blowsy.gitbook.io/raven-b4/documentation/entity#getwidth) getWidth Copy float width = entity.getWidth(); Returns the width of the entity. ### [](https://blowsy.gitbook.io/raven-b4/documentation/entity#getyaw) getYaw Copy float yaw = entity.getYaw(); Returns the yaw of the entity. ### [](https://blowsy.gitbook.io/raven-b4/documentation/entity#isburning) isBurning Copy boolean burning = entity.isBurning(); Returns true if the entity is burning. ### [](https://blowsy.gitbook.io/raven-b4/documentation/entity#iscollided) isCollided Copy boolean collided = entity.isCollided(); Returns true if the entity is collided. ### [](https://blowsy.gitbook.io/raven-b4/documentation/entity#iscollidedhorizontally) isCollidedHorizontally Copy boolean collidedHorizontally = entity.isCollidedHorizontally(); Returns true if the entity is collided horizontally. ### [](https://blowsy.gitbook.io/raven-b4/documentation/entity#iscollidedvertically) isCollidedVertically Copy boolean collidedVertically = entity.isCollidedVertically(); Returns true if the entity is collided vertically. ### [](https://blowsy.gitbook.io/raven-b4/documentation/entity#isconsuming) isConsuming Copy boolean consuming = entity.isConsuming(); Returns true if the entity is consuming an item. ### [](https://blowsy.gitbook.io/raven-b4/documentation/entity#iscreative) isCreative Copy boolean creative = entity.isCreative(); Returns true if the entity is in creative mode. ### [](https://blowsy.gitbook.io/raven-b4/documentation/entity#isdead) isDead Copy boolean dead = entity.isDead(); Returns true if the entity is dead. ### [](https://blowsy.gitbook.io/raven-b4/documentation/entity#isholdingblock) isHoldingBlock Copy boolean holdingBlock = entity.isHoldingBlock(); Returns true if the entity is holding a block. ### [](https://blowsy.gitbook.io/raven-b4/documentation/entity#isholdingweapon) isHoldingWeapon Copy boolean holdingWeapon = entity.isHoldingWeapon(); Returns true if the entity is holding a weapon. ### [](https://blowsy.gitbook.io/raven-b4/documentation/entity#isinlava) isInLava Copy boolean inLava = entity.isInLava(); Returns true if the entity is in lava. ### [](https://blowsy.gitbook.io/raven-b4/documentation/entity#isinliquid) isInLiquid Copy boolean inLiquid = entity.isInLiquid(); Returns true if the entity is in liquid. ### [](https://blowsy.gitbook.io/raven-b4/documentation/entity#isinvisible) isInvisible Copy boolean invisible = entity.isInvisible(); Returns true if the entity is invisible. ### [](https://blowsy.gitbook.io/raven-b4/documentation/entity#isinwater) isInWater Copy boolean inWater = entity.isInWater(); Returns true if the entity is in water. ### [](https://blowsy.gitbook.io/raven-b4/documentation/entity#isonedge) isOnEdge Copy boolean isOnEdge = entity.isOnEdge(); Returns true if the entity is on an edge. ### [](https://blowsy.gitbook.io/raven-b4/documentation/entity#isonladder) isOnLadder Copy boolean onLadder = entity.isOnLadder(); Returns true if the entity is on a ladder. ### [](https://blowsy.gitbook.io/raven-b4/documentation/entity#isriding) isRiding Copy boolean riding = entity.isRiding(); Returns true if the entity is riding. ### [](https://blowsy.gitbook.io/raven-b4/documentation/entity#issleeping) isSleeping Copy boolean sleeping = entity.isSleeping(); Returns true if the entity is sleeping. ### [](https://blowsy.gitbook.io/raven-b4/documentation/entity#issneaking) isSneaking Copy boolean sneaking = entity.isSneaking(); Returns true if the entity is sneaking. ### [](https://blowsy.gitbook.io/raven-b4/documentation/entity#issprinting) isSprinting Copy boolean sprinting = entity.isSprinting(); Returns true if the entity is sprinting. ### [](https://blowsy.gitbook.io/raven-b4/documentation/entity#isusingitem) isUsingItem Copy boolean usingItem = entity.isUsingItem(); Returns true if the entity is using an item. ### [](https://blowsy.gitbook.io/raven-b4/documentation/entity#onground) onGround Copy boolean onGround = entity.onGround(); Returns true if the entity is on the ground. ### [](https://blowsy.gitbook.io/raven-b4/documentation/entity#setpitch) setPitch Copy entity.setPitch(float pitch); Sets the pitch of the entity. ### [](https://blowsy.gitbook.io/raven-b4/documentation/entity#setposition) setPosition Copy entity.setPosition(Vec3 position); entity.setPosition(double x, double y, double z) Sets the position of the entity. ### [](https://blowsy.gitbook.io/raven-b4/documentation/entity#setyaw) setYaw Copy entity.setYaw(float yaw); Sets the yaw of the entity. Last updated 1 year ago --- # inventory | Raven B4 For the complete documentation index, see [llms.txt](https://blowsy.gitbook.io/raven-b4/llms.txt) . This page is also available as [Markdown](https://blowsy.gitbook.io/raven-b4/documentation/inventory.md) . ### [](https://blowsy.gitbook.io/raven-b4/documentation/inventory#click) click Copy inventory.click(int slot, int button, int mode); Clicks a slot in the inventory. [https://wiki.vg/Protocol#Click\_Container](https://wiki.vg/Protocol#Click_Container) ### [](https://blowsy.gitbook.io/raven-b4/documentation/inventory#getbookcontents) getBookContents Copy List pages = inventory.getBookContents(); Returns a list of pages in a json format. ### [](https://blowsy.gitbook.io/raven-b4/documentation/inventory#getchest) getChest Copy String chestName = inventory.getChest(); Gets the current chest name. ### [](https://blowsy.gitbook.io/raven-b4/documentation/inventory#getchestsize) getChestSize Copy int chestSize = inventory.getChestSize(); Gets the current chest's size. ### [](https://blowsy.gitbook.io/raven-b4/documentation/inventory#getcontainer) getContainer Copy String container = inventory.getContainer(); Gets the current container name. ### [](https://blowsy.gitbook.io/raven-b4/documentation/inventory#getsize) getSize Copy int size = inventory.getSize(); Gets the current inventory's size. ### [](https://blowsy.gitbook.io/raven-b4/documentation/inventory#getslot) getSlot Copy int slot = inventory.getSlot(); Returns the current slot. ### [](https://blowsy.gitbook.io/raven-b4/documentation/inventory#getstackinchestslot) getStackInChestSlot Copy ItemStack item = inventory.getStackInChestSlot(int slot); Gets the item in a specified chest slot. ### [](https://blowsy.gitbook.io/raven-b4/documentation/inventory#getstackinslot) getStackInSlot Copy ItemStack item = inventory.getStackInSlot(int slot); Gets the item in a specified slot. ### [](https://blowsy.gitbook.io/raven-b4/documentation/inventory#open) open Copy inventory.open(); Opens your inventory menu. ### [](https://blowsy.gitbook.io/raven-b4/documentation/inventory#setslot) setSlot Copy inventory.setSlot(int slot); Sets your slot. Last updated 1 year ago --- # render | Raven B4 For the complete documentation index, see [llms.txt](https://blowsy.gitbook.io/raven-b4/llms.txt) . This page is also available as [Markdown](https://blowsy.gitbook.io/raven-b4/documentation/render.md) . ### [](https://blowsy.gitbook.io/raven-b4/documentation/render#block) block Copy render.block(Vec3 position, int color, boolean outline, boolean shade); render.block(int x, int y, int z, int color, boolean outline, boolean shade); Renders a block at a specified position in the world. Must be called during the `onRenderWorld` event. ### [](https://blowsy.gitbook.io/raven-b4/documentation/render#bloom) bloom Copy render.bloom.prepare(); render.bloom.apply(int passes, float radius); Applies a bloom shader to all renders between `prepare` and `apply`. ### [](https://blowsy.gitbook.io/raven-b4/documentation/render#blur) blur Copy render.blur.prepare(); render.blur.apply(int passes, float radius); Applies a blur shader to all renders between `prepare` and `apply`. ### [](https://blowsy.gitbook.io/raven-b4/documentation/render#entity) entity Copy render.entity(Entity entity, int color, float partialTicks, boolean outline, boolean shade); Renders an entity outline. ### [](https://blowsy.gitbook.io/raven-b4/documentation/render#entitygui) entityGui Copy render.entityGui(Entity en, int x, int y, float mouseX, float mouseY, int scale); Renders an entity model on the screen. ### [](https://blowsy.gitbook.io/raven-b4/documentation/render#getcamerarotations) getCameraRotations Copy double[] rotations = render.getCameraRotations(); Returns the rotations of the camera as an array `[yaw, pitch]`. ### [](https://blowsy.gitbook.io/raven-b4/documentation/render#getfontheight) getFontHeight Copy int fontHeight = render.getFontHeight(); Returns the height of the current font. ### [](https://blowsy.gitbook.io/raven-b4/documentation/render#getfontwidth) getFontWidth Copy int fontWidth = render.getFontWidth(String text); Returns the width of the specified text. ### [](https://blowsy.gitbook.io/raven-b4/documentation/render#getposition) getPosition Copy Vec3 position = render.getPosition(); Returns the position of the camera. ### [](https://blowsy.gitbook.io/raven-b4/documentation/render#getrotations) getRotations Copy double[] rotations = render.getRotations(); Returns the rotations of the camera as an array `[yaw, pitch]`. ### [](https://blowsy.gitbook.io/raven-b4/documentation/render#image) image Copy render.image(Image image, float x, float y, float width, float height); Renders an image on the screen. ### [](https://blowsy.gitbook.io/raven-b4/documentation/render#isinview) isInView Copy boolean isInView = render.isInView(Entity en); Returns true if the specified entity is within the field of view of the camera. ### [](https://blowsy.gitbook.io/raven-b4/documentation/render#item) item Copy render.item(ItemStack item, float x, float y, float scale); Renders an item on the screen. ### [](https://blowsy.gitbook.io/raven-b4/documentation/render#line2d) line2D Copy render.line2D(double startX, double startY, double endX, double endY, float lineWidth, int color); Renders a line on the screen. ### [](https://blowsy.gitbook.io/raven-b4/documentation/render#line3d) line3D Copy render.line3D(Vec3 start, Vec3 end, float lineWidth, int color); render.line3D(double startX, double startY, double startZ, double endX, double endY, double endZ, float lineWidth, int color); Renders a line in the world. ### [](https://blowsy.gitbook.io/raven-b4/documentation/render#rect) rect Copy render.rect(float startX, float startY, float endX, float endY, int color); Renders a rectangle on the screen. ### [](https://blowsy.gitbook.io/raven-b4/documentation/render#resetequippedprogress) resetEquippedProgress Copy render.resetEquippedProgress(); Resets the equipped animation. ### [](https://blowsy.gitbook.io/raven-b4/documentation/render#roundedrect) roundedRect Copy render.roundedRect(float startX, float startY, float endX, float endY, float radius, int color); Renders a rounded rectangle on the screen. ### [](https://blowsy.gitbook.io/raven-b4/documentation/render#text2d) text2d Copy render.text2d(String text, float x, float y, float scale, int color, boolean shadow); Renders text on the screen. ### [](https://blowsy.gitbook.io/raven-b4/documentation/render#text3d) text3d Copy render.text3d(String text, Vec3 position, float scale, boolean shadow, boolean depth, int color); Renders text in the world. ### [](https://blowsy.gitbook.io/raven-b4/documentation/render#tracer) tracer Copy render.tracer(Entity en, float lineWidth, int color, float partialTicks); Renders a tracer line to a specified entity. ### [](https://blowsy.gitbook.io/raven-b4/documentation/render#worldtoscreen) worldToScreen Copy Vec3 screen = render.worldToScreen(double x, double y, double z, int scaleFactor, float partialTicks); Returns the screen coordinates and screen depth. property description type x x axis double y y axis double z depth double Last updated 1 year ago --- # util | Raven B4 For the complete documentation index, see [llms.txt](https://blowsy.gitbook.io/raven-b4/llms.txt) . This page is also available as [Markdown](https://blowsy.gitbook.io/raven-b4/documentation/util.md) . ### [](https://blowsy.gitbook.io/raven-b4/documentation/util#color) color Copy String coloredMessage = util.color(String message); Replaces all color shortcuts with the color symbol. ### [](https://blowsy.gitbook.io/raven-b4/documentation/util#colorsymbol) colorSymbol Copy String colorSymbol = util.colorSymbol; Minecraft unicode character for color codes. Can be used for rendering minecraft coloring in render.text. ### [](https://blowsy.gitbook.io/raven-b4/documentation/util#randomdouble) randomDouble Copy int random = util.randomDouble(double min, double max); Generates a random double between a specified range. ### [](https://blowsy.gitbook.io/raven-b4/documentation/util#randomint) randomInt Copy int random = util.randomInt(int min, int max); Generates a random integer between a specified range. ### [](https://blowsy.gitbook.io/raven-b4/documentation/util#round) round Copy double round = util.round(double value, int decimals); Rounds a double value to x significant figures. ### [](https://blowsy.gitbook.io/raven-b4/documentation/util#strip) strip Copy String chatMessage = util.strip(String message); Strips all color codes from a string. Last updated 1 year ago --- # events | Raven B4 For the complete documentation index, see [llms.txt](https://blowsy.gitbook.io/raven-b4/llms.txt) . This page is also available as [Markdown](https://blowsy.gitbook.io/raven-b4/documentation/events.md) . ### [](https://blowsy.gitbook.io/raven-b4/documentation/events#onanticheatflag) onAntiCheatFlag Copy void onAntiCheatFlag(String flag, Entity entity) This event will be called when AntiCheat flags a player. ### [](https://blowsy.gitbook.io/raven-b4/documentation/events#onattackentity) onAttackEntity Copy boolean onAttackEntity(Entity target, Entity attacker) This event will be called when the player attacks an entity. ### [](https://blowsy.gitbook.io/raven-b4/documentation/events#onload) onLoad Copy void onLoad() This event will be called when the script is loaded. Register buttons/sliders here. ### [](https://blowsy.gitbook.io/raven-b4/documentation/events#onchat) onChat Copy boolean onChat(String msg) This event will be called whenever a message is sent in chat. ### [](https://blowsy.gitbook.io/raven-b4/documentation/events#ondisconnect) onDisconnect Copy void onDisconnect() This event will be called whenever the client disconnects from a server. ### [](https://blowsy.gitbook.io/raven-b4/documentation/events#onenable) onEnable Copy void onEnable() This event will be called whenever the script is enabled. ### [](https://blowsy.gitbook.io/raven-b4/documentation/events#ondisable) onDisable Copy void onDisable() This event will be called whenever the script is disabled. ### [](https://blowsy.gitbook.io/raven-b4/documentation/events#onkeypress) onKeyPress Copy boolean onKeyPress(char key, int code) This event will be called when key is pressed. ### [](https://blowsy.gitbook.io/raven-b4/documentation/events#onpacketsent) onPacketSent Copy boolean onPacketSent(CPacket packet) This event will be called before a packet gets sent to the server. ### [](https://blowsy.gitbook.io/raven-b4/documentation/events#onpacketreceived) onPacketReceived Copy boolean onPacketReceived(SPacket packet) This event will be called before a packet gets processed by the client. ### [](https://blowsy.gitbook.io/raven-b4/documentation/events#onguiupdate) onGuiUpdate Copy void onGuiUpdate(String name, boolean opened) This event will be called when a GUI updates. ### [](https://blowsy.gitbook.io/raven-b4/documentation/events#getrotations) getRotations Copy Float[] getRotations() This event is called when minecraft sets your yaw and pitch for movement calculations. Return null to return the vanilla yaw and pitch. Calling client.enableMovementFix() on this event will enable movement correction. ### [](https://blowsy.gitbook.io/raven-b4/documentation/events#onpreupdate) onPreUpdate Copy void onPreUpdate() This event will be called at the beginning of every update to the local player. ### [](https://blowsy.gitbook.io/raven-b4/documentation/events#onpreplayerinput) onPrePlayerInput Copy void onPrePlayerInput(MovementInput input) This event will be called before the client processes player inputs. property type forward float strafe float jump boolean sneak boolean ### [](https://blowsy.gitbook.io/raven-b4/documentation/events#onpostplayerinput) onPostPlayerInput Copy void onPostPlayerInput() This event will be called after the client processes player inputs. ### [](https://blowsy.gitbook.io/raven-b4/documentation/events#onplayermove) onPlayerMove Copy void onPlayerMove(Vec3 motion) This event will be called before the local player is moved. ### [](https://blowsy.gitbook.io/raven-b4/documentation/events#onpremotion) onPreMotion Copy void onPreMotion(PlayerState state) This event will be called before player updates are sent to the server. property type x double y double z double yaw float pitch float onGround boolean isSprinting boolean isSneaking boolean ### [](https://blowsy.gitbook.io/raven-b4/documentation/events#onpostmotion) onPostMotion Copy void onPostMotion() This event will be called at the end of every update to the local player. ### [](https://blowsy.gitbook.io/raven-b4/documentation/events#onrendertick) onRenderTick Copy void onRenderTick(float partialTicks) This event is called every time the HUD renders. ### [](https://blowsy.gitbook.io/raven-b4/documentation/events#onrenderworld) onRenderWorld Copy void onRenderWorld(float partialTicks) This event is called every time the world renders. ### [](https://blowsy.gitbook.io/raven-b4/documentation/events#onworldjoin) onWorldJoin Copy void onWorldJoin(Entity entity) This event is called whenever an entity spawns in. ### [](https://blowsy.gitbook.io/raven-b4/documentation/events#onmouse) onMouse Copy boolean onMouse(int button, boolean state) This event is called whenever a button on the mouse is pressed. Last updated 10 months ago --- # packets | Raven B4 For the complete documentation index, see [llms.txt](https://blowsy.gitbook.io/raven-b4/llms.txt) . This page is also available as [Markdown](https://blowsy.gitbook.io/raven-b4/documentation/packets.md) . Cast a packet: `PacketType variableName = (PacketType) packet;` This must be done to be able to access the data stored in the packet. ### [](https://blowsy.gitbook.io/raven-b4/documentation/packets#c0apacketanimation) C0APacketAnimation Copy new C0A(); ### [](https://blowsy.gitbook.io/raven-b4/documentation/packets#c0bpacketentityaction) C0BPacketEntityAction Copy new C0B(String action, int horsePower); C0B entityAction = (C0B) packet; property description type action START\_SNEAKING STOP\_SNEAKING STOP\_SLEEPING START\_SPRINTING STOP\_SPRINTING RIDING\_JUMP OPEN\_INVENTORY START\_FALL\_FLYING String horsePower Horse jump power, 0-100 int ### [](https://blowsy.gitbook.io/raven-b4/documentation/packets#c0dpacketclosewindow) C0DPacketCloseWindow Copy new C0D(int windowId); C0D closeWindow = (C0D) packet; property description type windowId The ID of the window int ### [](https://blowsy.gitbook.io/raven-b4/documentation/packets#c0epacketclickwindow) C0EPacketClickWindow Copy new C0E(int windowId, int slot, int button, int mode, ItemStack itemStack); C0E clickWindow = (C0E) packet; property description type windowId window id int slot inventory slot int button button pressed int mode button mode int itemStack item stack ItemStack ### [](https://blowsy.gitbook.io/raven-b4/documentation/packets#c0fpacketconfirmtransaction) C0FPacketConfirmTransaction Copy new C0F(int windowId, short uid); C0F confirmTransaction = (C0F) packet; property description type windowId The ID of the window int uid Unique identifier for packet short ### [](https://blowsy.gitbook.io/raven-b4/documentation/packets#c01packetchatmessage) C01PacketChatMessage Copy new C01(String message); C01 chatMessage = (C01) packet; property description type message Chat message String ### [](https://blowsy.gitbook.io/raven-b4/documentation/packets#c02packetuseentity) C02PacketUseEntity Copy new C02(Entity entity, String action, Vec3 hitVec); C02 useEntity = (C02) packet; property description type entity Entity Entity action ATTACK INTERACT INTERACT\_AT String hitVec Hit Vector Vec3 ### [](https://blowsy.gitbook.io/raven-b4/documentation/packets#c03packetplayer) C03PacketPlayer Copy new C03(boolean ground); C03 playerGround = (C03) packet; property description type ground If player is on ground or not boolean ### [](https://blowsy.gitbook.io/raven-b4/documentation/packets#c04packetplayerposition) C04PacketPlayerPosition Copy new C03(Vec3 position, boolean ground); C03 playerPosition = (C03) packet; property description type position Player's position Vec3 ground If player is on ground or not boolean ### [](https://blowsy.gitbook.io/raven-b4/documentation/packets#c05packetplayerlook) C05PacketPlayerLook Copy new C03(float yaw, float pitch, boolean ground); C03 playerLook = (C03) packet; property description type yaw Player's yaw float pitch Player's pitch float ground If player is on ground or not boolean ### [](https://blowsy.gitbook.io/raven-b4/documentation/packets#c06packetplayerposlook) C06PacketPlayerPosLook Copy new C03(Vec3 position, float yaw, float pitch, boolean ground); C03 playerPosLook = (C03) packet; property description type position Player's position Vec3 yaw Player's yaw float pitch Player's pitch float ground If player is on ground or not boolean ### [](https://blowsy.gitbook.io/raven-b4/documentation/packets#c07packetplayerdigging) C07PacketPlayerDigging Copy new C07(Vec3 position, String status, String facing); C07 playerDigging = (C07) packet; property description type position Block placement position Vec3 status START\_DESTROY\_BLOCK STOP\_DESTROY\_BLOCK ABORT\_DESTROY\_BLOCK DROP\_ALL\_ITEMS DROP\_ITEM RELEASE\_USE\_ITEM String facing UP DOWN NORTH SOUTH EAST WEST String ### [](https://blowsy.gitbook.io/raven-b4/documentation/packets#c08packetplayerblockplacement) C08PacketPlayerBlockPlacement Copy new C08(ItemStack itemStack, Vec3 position, int direction, Vec3 offset); C08 playerBlockPlacement = (C08) packet; property description type itemStack Player's current item ItemStack position Block placement position Vec3 direction Block placement direction int offset Block placement offset Vec3 ### [](https://blowsy.gitbook.io/raven-b4/documentation/packets#c09packethelditemchange) C09PacketHeldItemChange Copy new C09(int slot); C09 heldItemChange = (C09) packet; property description type slot Player's held item slot int ### [](https://blowsy.gitbook.io/raven-b4/documentation/packets#c10packetcreativeinventoryaction) C10PacketCreativeInventoryAction Copy new C10(int slot, ItemStack itemStack); C10 creativeInventoryAction = (C10) packet; property description type slot Player's held item slot int itemStack Item being affected ItemStack ### [](https://blowsy.gitbook.io/raven-b4/documentation/packets#c13packetplayerabilities) C13PacketPlayerAbilities Copy new C13(boolean invulnerable, boolean flying, boolean allowFlying, boolean creativeMode, float flySpeed, float walkSpeed); C13 playerAbilities = (C13) packet; property description type invulnerable True if the player is invulnerable boolean flying True if the player is flying boolean allowFlying True if the player is allowed to fly boolean creativeMode True if the player is in creative boolean flySpeed Flying speed of the player float walkSpeed Walking speed of the player float ### [](https://blowsy.gitbook.io/raven-b4/documentation/packets#c16packetclientstatus) C16PacketClientStatus Copy new C16(String status); C16 clientStatus = (C16) packet; property description type status PERFORM\_RESPAWN REQUEST\_STATS OPEN\_INVENTORY\_ACHIEVEMENT String ### [](https://blowsy.gitbook.io/raven-b4/documentation/packets#s02packetchat) S02PacketChat Copy new S02(byte type, String message); S02 s02 = (S02) packet; property description type type The type of message byte message The message displayed String ### [](https://blowsy.gitbook.io/raven-b4/documentation/packets#s08packetplayerposlook) S08PacketPlayerPosLook Copy new S08(Vec3 position, float yaw, float pitch); S08 s08 = (S08) packet; property description type position Entity's position Vec3 yaw Entity's yaw float pitch Entity's pitch float ### [](https://blowsy.gitbook.io/raven-b4/documentation/packets#s12packetentityvelocity) S12PacketEntityVelocity Copy new S12(int entityId, Vec3 motion); S12 s12 = (S12) packet; property description type entityId Entity ID packet is applied to int motion Entity's new motion Vec3 ### [](https://blowsy.gitbook.io/raven-b4/documentation/packets#s23packetblockchange) S23PacketBlockChange Copy new S23(Vec3 position, Block block); S23 s23 = (S23) packet; property description type position Position of the block Vec3 block Block that was changed Block ### [](https://blowsy.gitbook.io/raven-b4/documentation/packets#s25packetblockbreakanim) S25PacketBlockBreakAnim Copy new S25(int entityId, Block block, int progress); S25 s25 = (S25) packet; property description type entityId Entity id int block Block being animated Block progress Breaking animation progress int ### [](https://blowsy.gitbook.io/raven-b4/documentation/packets#s27packetexplosion) S27PacketExplosion Copy new S27(float strength, Vec3 position, Vec3 motion); S27 s27 = (S27) packet; property description type strength Explosion's strength float position Position of the explosion Vec3 motion Applied motion from the explosion Vec3 ### [](https://blowsy.gitbook.io/raven-b4/documentation/packets#s45packettitle) S45PacketTitle Copy new S45(String type, String message, int fadeInTime, int displayTime, int fadeOutTime); S45 s45 = (S45) packet; property description type type Type of title String message The message displayed String fadeInTime Fade in time in ticks int displayTime Display time in ticks int fadeOutTime Fade out time in ticks int ### [](https://blowsy.gitbook.io/raven-b4/documentation/packets#s2apacketparticles) S2APacketParticles Copy new S2A(String type, Vec3 position, Vec3 offset, Vec3 speed, int count, int[] args); S2A s2a = (S2A) packet; property description type type Packet identifier String position Position of the particle Vec3 offset Random offset of the particle Vec3 speed Velocity of the particle Vec3 count Amount of particles int args Arguments int\[\] ### [](https://blowsy.gitbook.io/raven-b4/documentation/packets#s3epacketplayoutscoreboardteam) S3EPacketPlayOutScoreboardTeam Copy new S3E(String name, String displayName, String prefix, String suffix, String nametagVisibility, Collection playerList, int action, int friendlyFlags, int color); S3E s3e = (S3E) packet; property description type name Unique team identifier String displayName Display name for players String prefix String before player names String suffix String after player names String nametagVisibility Controls nametag visibility String playerList List of player names on the team Collection action Specifies packet action int friendlyFlags Flags for team behavior int color Team color int Last updated 1 year ago --- # bridge | Raven B4 For the complete documentation index, see [llms.txt](https://blowsy.gitbook.io/raven-b4/llms.txt) . This page is also available as [Markdown](https://blowsy.gitbook.io/raven-b4/documentation/bridge.md) . ### [](https://blowsy.gitbook.io/raven-b4/documentation/bridge#add) add Copy bridge.add(String key, Object value); bridge.add(String key); Adds a value to the bridge map. ### [](https://blowsy.gitbook.io/raven-b4/documentation/bridge#clear) clear Copy bridge.clear(); Clears the bridge map. ### [](https://blowsy.gitbook.io/raven-b4/documentation/bridge#get) get Copy Object value = bridge.get(String key); Returns the value stored under a specified key. ### [](https://blowsy.gitbook.io/raven-b4/documentation/bridge#has) has Copy boolean containsKey = bridge.has(String key); Returns true if the bridge map has a specified key. ### [](https://blowsy.gitbook.io/raven-b4/documentation/bridge#remove) remove Copy bridge.remove(String key); Removes a value from the bridge map. Last updated 1 year ago --- # client | Raven B4 For the complete documentation index, see [llms.txt](https://blowsy.gitbook.io/raven-b4/llms.txt) . This page is also available as [Markdown](https://blowsy.gitbook.io/raven-b4/documentation/client.md) . ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#addenemy) addEnemy Copy client.addEnemy(String username); Adds the specified player to your enemies list. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#addfriend) addFriend Copy client.addFriend(String username); Adds the specified player to your friends list. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#allowediting) allowEditing Copy boolean allowEditing = client.allowEditing(); Returns true if the player can edit the world. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#allowflying) allowFlying Copy boolean allowFlying = client.allowFlying(); Returns true if the player has the ability to fly. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#async) async Copy client.async(() -> {}); Executes a task asynchronously, allowing it to run independently of the main thread. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#attack) attack Copy client.attack(Entity entity); Performs an attack on the specified entity. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#chat) chat Copy client.chat(String message); Sends the specified message in chat. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#closescreen) closeScreen Copy client.closeScreen(); Closes the currently open screen. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#debug) debug Copy String key = client.debug(String key); Performs a debug action using the specified key. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#dropitem) dropItem Copy client.dropItem(boolean dropStack); Drops the currently held item, optionally dropping the entire stack. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#enablemovementfix) enableMovementFix Copy client.enableMovementFix(); Enables movement correction for the current tick. Call on the getRotations event when returning a custom yaw. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#getdirection) getDirection Copy String direction = client.getDirection(); Returns the direction the player is moving based on input. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#getdisplaysize) getDisplaySize Copy int[] displaySize = client.getDisplaySize(); Returns the dimensions of the Minecraft window as an array `[width, height, size]`. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#getforward) getForward Copy float forward = client.getForward(); Returns the forward movement value of the player. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#getfps) getFPS Copy int fps = client.getFPS(); Returns the current frames per second (FPS) of the client. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#getfreememory) getFreeMemory Copy long memory = client.getFreeMemory(); Returns the amount of free memory available to the client. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#getmaxmemory) getMaxMemory Copy long memory = client.getMaxMemory(); Returns the maximum memory allocated to the client. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#getmotion) getMotion Copy Vec3 motion = client.getMotion(); Returns the motion vector of the local player. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#getplayer) getPlayer Copy Entity player = client.getPlayer(); Returns the Entity object of the local player. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#getrecordplaying) getRecordPlaying Copy String record = client.getRecordPlaying(); Returns the record string above the hotbar. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#getrenderarmpitch) getRenderArmPitch Copy float pitch = client.getRenderArmPitch(); Returns the arm pitch of the player. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#getrenderarmyaw) getRenderArmYaw Copy float yaw = client.getRenderArmYaw(); Returns the arm yaw of the player. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#getresourcepacks) getResourcePacks Copy List packs = client.getResourcePacks(); Returns a list of resource packs as an array `[name, description]`. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#getrotations) getRotations Copy float[] rotations = client.getRotations(Vec3 position); Returns the yaw and pitch to aim at the specified position as an array `[yaw, pitch]`. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#getrotationstoblock) getRotationsToBlock Copy 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]`. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#getrotationstoentity) getRotationsToEntity Copy float[] rotations = client.getRotationsToEntity(Entity entity); Returns the yaw and pitch to aim at the specified entity as an array `[yaw, pitch]`. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#getscreen) getScreen Copy String screen = client.getScreen(); Returns the name of the currently open screen. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#getserverdirection) getServerDirection Copy float yaw = client.getServerDirection(PlayerState state); Returns the server yaw of the player. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#getserverip) getServerIP Copy String serverIP = client.getServerIP(); Returns the IP address of the connected server. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#getstrafe) getStrafe Copy float strafe = client.getStrafe(); Returns the strafe movement value of the player. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#getsubtitle) getSubTitle Copy String subtitle = client.getSubTitle(); Returns the current subtitle on screen. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#gettabfooter) getTabFooter Copy String footer = client.getTabFooter(); Returns the footer in the tablist. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#gettabheader) getTabHeader Copy String header = client.getTabHeader(); Returns the header in the tablist. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#gettitle) getTitle Copy String title = client.getTitle(); Returns the current title on screen. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#gettotalmemory) getTotalMemory Copy long memory = client.getTotalMemory(); Returns the total memory currently in use by the client. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#getuid) getUID Copy int uid = client.getUID(); Returns the Raven client unique identifier. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#getuser) getUser Copy String username = client.getUser() Returns the Raven client username. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#infocus) inFocus Copy boolean focused = client.inFocus(); Returns true if the minecraft instance is in focus. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#iscreative) isCreative Copy boolean creative = client.isCreative(); Returns true if the player is in creative mode. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#isdiagonal) isDiagonal Copy boolean diagonal = client.isDiagonal(); Returns true if the player is moving diagonally. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#isenemy) isEnemy Copy boolean isEnemy = client.isEnemy(String username); Returns true if the specified username is on the enemy list. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#isfacingdiagonal) isFacingDiagonal Copy boolean diagonal = client.isFacingDiagonal(); Returns true if the player is facing diagonally. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#isflying) isFlying Copy boolean flying = client.isFlying(); Returns true if the player is currently flying. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#isfriend) isFriend Copy boolean isFriend = client.isFriend(String username); Returns true if the specified username is on the friends list. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#isjump) isJump Copy boolean jump = client.isJump(); Returns true if the player is currently jumping. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#ismoving) isMoving Copy boolean moving = client.isMoving(); Returns true if the player is actively moving. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#isriding) isRiding Copy boolean riding = client.isRiding(); Returns true if the player is riding another entity. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#issingleplayer) isSinglePlayer Copy boolean singleplayer = client.isSinglePlayer(); Returns true if the player is in a single-player world. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#issneak) isSneak Copy boolean sneaking = client.isSneak(); Returns true if the player is crouched. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#isspectator) isSpectator Copy boolean spectating = client.isSpectator(); Returns true if the player is in gamemode spectator. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#jump) jump Copy client.jump(); Makes the player perform a jump. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#log) log Copy client.log(Object message); Writes the specified message to `latest.log`. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#ping) ping Copy client.ping(); Plays a ping sound. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#placeblock) placeBlock Copy boolean placed = client.placeBlock(Vec3 target, String side, Vec3 hitVec); Places a block at the specified target with a defined hit vector. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#playsound) playSound Copy client.playSound(String name, float volume, float pitch); Plays the specified sound with the given volume and pitch. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#print) print Copy client.print(Object message); Prints the specified message to the chat. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#processpacket) processPacket Copy client.processPacket(SPacket packet); Sends a serverside packet to yourself. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#processpacketnoevent) processPacketNoEvent Copy client.processPacketNoEvent(SPacket packet); Sends a serverside packet to yourself without triggering events. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#raycastblock) raycastBlock Copy Object[] block = client.raycastBlock(double distance, float yaw, float pitch); 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 ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#raycastentity) raycastEntity Copy Object[] entity = client.raycastEntity(double distance, float yaw, float pitch); 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 ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#removeenemy) removeEnemy Copy client.removeEnemy(String username); Removes the specified username from the enemy list. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#removefriend) removeFriend Copy client.removeFriend(String username); Removes the specified player from the friends list. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#removepotioneffect) removePotionEffect Copy client.removePotionEffect(int id); Removes a potion effect by its ID client-side. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#sendpacket) sendPacket Copy client.sendPacket(CPacket packet); Sends the specified packet to the server. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#sendpacketnoevent) sendPacketNoEvent Copy client.sendPacketNoEvent(CPacket packet); Sends the specified packet to the server without triggering events. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#setflying) setFlying Copy client.setFlying(boolean flying); Sets the flying state of the player ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#setforward) setForward Copy client.setForward(float forward); Sets the forward movement value of the player. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#setiteminuse) setItemInUse Copy client.setItemInUse(int count); Activates the using animation on the held item of the player. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#setjump) setJump Copy client.setJump(boolean jump); Sets the jumping state of the player. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#setmotion) setMotion Copy client.setMotion(Vec3 motion); Sets the motion vector of the player. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#setrenderarmpitch) setRenderArmPitch Copy client.setRenderArmPitch(float pitch); Sets the arm pitch of the player. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#setrenderarmyaw) setRenderArmYaw Copy client.setRenderArmYaw(float yaw); Sets the arm yaw of the player. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#setsneak) setSneak Copy client.setSneak(boolean sneak); Sets the sneaking state of the player. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#setspeed) setSpeed Copy client.setSpeed(double speed); Sets the movement speed of the player. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#setsprinting) setSprinting Copy client.setSprinting(boolean sprinting); Sets the sprinting state of the player. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#setspeedforward) setSpeedForward Copy client.setSpeedForward(double speed); Sets the forward speed of the player. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#setstrafe) setStrafe Copy client.setStrafe(float strafe); Sets the strafe movement value of the player. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#settimer) setTimer Copy client.setTimer(float timer); Sets the speed multiplier of the player. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#sleep) sleep Copy client.sleep(int ms); Pauses execution on the current thread for the specified duration in milliseconds. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#swing) swing Copy client.swing(); Performs an arm swing for the player. ### [](https://blowsy.gitbook.io/raven-b4/documentation/client#time) time Copy long time = client.time(); Returns the current system time in milliseconds. Last updated 10 months ago --- # http | Raven B4 For the complete documentation index, see [llms.txt](https://blowsy.gitbook.io/raven-b4/llms.txt) . This page is also available as [Markdown](https://blowsy.gitbook.io/raven-b4/documentation/http.md) . ### [](https://blowsy.gitbook.io/raven-b4/documentation/http#loadstring) loadstring Copy load - "URL" Loads and compiles code from an external website. Must be outside of a function in the documented format on a separate line. ### [](https://blowsy.gitbook.io/raven-b4/documentation/http#request) request Copy Request request = new Request(String method, String URL); Creates a new request to a specified URL. Supported methods: "GET", "POST". ### [](https://blowsy.gitbook.io/raven-b4/documentation/http#addheader) addHeader Copy request.addHeader(String header, String value); Adds a header to the request. ### [](https://blowsy.gitbook.io/raven-b4/documentation/http#setuseragent) setUserAgent Copy request.setUserAgent(String userAgent); Sets the User-Agent header for the request. ### [](https://blowsy.gitbook.io/raven-b4/documentation/http#setconnectiontimeout) setConnectionTimeout Copy request.setConnectTimeout(int timeout); Sets the connection timeout for the request. ### [](https://blowsy.gitbook.io/raven-b4/documentation/http#setreadtimeout) setReadTimeout Copy request.setReadTimeout(int timeout); Sets the read timeout for the request. ### [](https://blowsy.gitbook.io/raven-b4/documentation/http#setcontent) setContent Copy request.setContent(String content); Sets the content to be sent with a POST request. ### [](https://blowsy.gitbook.io/raven-b4/documentation/http#fetch) fetch Copy Response response = request.fetch(); Executes the request. ### [](https://blowsy.gitbook.io/raven-b4/documentation/http#code) code Copy int code = response.code(); Returns the response code for a request. ### [](https://blowsy.gitbook.io/raven-b4/documentation/http#string) string Copy String string = response.string(); Returns the data from a request as a string. ### [](https://blowsy.gitbook.io/raven-b4/documentation/http#json) json Copy Json json = response.json(); Returns the data from a request as json. Last updated 1 year ago --- # json | Raven B4 For the complete documentation index, see [llms.txt](https://blowsy.gitbook.io/raven-b4/llms.txt) . This page is also available as [Markdown](https://blowsy.gitbook.io/raven-b4/documentation/json.md) . ### [](https://blowsy.gitbook.io/raven-b4/documentation/json#add) add Copy jsonArray.add(Json value); jsonArray.add(String value); jsonArray.add(Number value); jsonArray.add(boolean value); Appends a value to a JSON array. ### [](https://blowsy.gitbook.io/raven-b4/documentation/json#add-1) add Copy jsonObject.add(String key, Json value); jsonObject.add(String key, String value); jsonObject.add(String key, Number value); jsonObject.add(String key, boolean value); Adds a key-value pair to a JSON object. ### [](https://blowsy.gitbook.io/raven-b4/documentation/json#array) array Copy Json jsonArray = Json.array(); Creates an empty JSON array. ### [](https://blowsy.gitbook.io/raven-b4/documentation/json#asarray) asArray Copy List arrayValues = jsonArray.asArray(); Converts a JSON array into a list of Json objects. ### [](https://blowsy.gitbook.io/raven-b4/documentation/json#asboolean) asBoolean Copy boolean flag = jsonPrimitive.asBoolean(); Extracts a boolean value from a JSON primitive. ### [](https://blowsy.gitbook.io/raven-b4/documentation/json#asdouble) asDouble Copy double decimal = jsonPrimitive.asDouble(); Extracts a double value from a JSON primitive. ### [](https://blowsy.gitbook.io/raven-b4/documentation/json#asint) asInt Copy int number = jsonPrimitive.asInt(); Extracts an integer value from a JSON primitive. ### [](https://blowsy.gitbook.io/raven-b4/documentation/json#aslong) asLong Copy long number = jsonPrimitive.asLong(); Extracts a long value from a JSON primitive. ### [](https://blowsy.gitbook.io/raven-b4/documentation/json#asstring) asString Copy String text = jsonPrimitive.asString(); Extracts a string value from a JSON primitive. ### [](https://blowsy.gitbook.io/raven-b4/documentation/json#get) get Copy Json value = jsonObject.get(String key); Retrieves a JSON element by key. Returns a JSON null object if the key doesn't exist. ### [](https://blowsy.gitbook.io/raven-b4/documentation/json#has) has Copy boolean hasKey = jsonObject.has(String key); Checks if a JSON object has a specific key. ### [](https://blowsy.gitbook.io/raven-b4/documentation/json#object) object Copy Json jsonObject = Json.object(); Creates an empty JSON object. ### [](https://blowsy.gitbook.io/raven-b4/documentation/json#parse) parse Copy Json json = Json.parse(String jsonString); Parses a JSON-formatted string into a Json object. ### [](https://blowsy.gitbook.io/raven-b4/documentation/json#keys) keys Copy Set keys = json.keys(); Extracts the keys from a json object. ### [](https://blowsy.gitbook.io/raven-b4/documentation/json#tostring) toString Copy String jsonString = json.toString(); Returns the JSON object as a formatted string. ### [](https://blowsy.gitbook.io/raven-b4/documentation/json#type) type Copy Json.Type type = json.type(); Returns the type of JSON element. `[OBJECT, ARRAY, STRING, NUMBER, BOOLEAN, NULL]` Last updated 1 year ago --- # network | Raven B4 For the complete documentation index, see [llms.txt](https://blowsy.gitbook.io/raven-b4/llms.txt) . This page is also available as [Markdown](https://blowsy.gitbook.io/raven-b4/documentation/network.md) . Required: entity.getNetworkPlayer() or world.getNetworkPlayers(); ### [](https://blowsy.gitbook.io/raven-b4/documentation/network#getcape) getCape Copy String cape = networkPlayer.getCape(); Returns the cape of the player. ### [](https://blowsy.gitbook.io/raven-b4/documentation/network#getdisplayname) getDisplayName Copy String displayName = networkPlayer.getDisplayName(); Returns the formatted display name of the player. ### [](https://blowsy.gitbook.io/raven-b4/documentation/network#getname) getName Copy String name = networkPlayer.getName(); Returns the unformatted display name of the player. ### [](https://blowsy.gitbook.io/raven-b4/documentation/network#getping) getPing Copy int ping = networkPlayer.getPing(); Returns the ping of the player. ### [](https://blowsy.gitbook.io/raven-b4/documentation/network#getskindata) getSkinData Copy String skinData = networkPlayer.getSkinData(); Returns the skin data of the player. ### [](https://blowsy.gitbook.io/raven-b4/documentation/network#getuuid) getUUID Copy String uuid = networkPlayer.getUUID(); Returns the uuid of the player. Last updated 1 year ago --- # objects | Raven B4 For the complete documentation index, see [llms.txt](https://blowsy.gitbook.io/raven-b4/llms.txt) . This page is also available as [Markdown](https://blowsy.gitbook.io/raven-b4/documentation/objects.md) . [](https://blowsy.gitbook.io/raven-b4/documentation/objects#block) Block ----------------------------------------------------------------------------- property type type String name String interactable boolean variant int heigth double width double length double x double y double z double [](https://blowsy.gitbook.io/raven-b4/documentation/objects#entity) Entity ------------------------------------------------------------------------------- property type type String entityId String [](https://blowsy.gitbook.io/raven-b4/documentation/objects#image) Image ----------------------------------------------------------------------------- Copy Image image = new Image(String url, boolean cache); Creates a new image. The image will be requested from the URL. Cache determines whether or not the image will be reloaded when reloading scripts. ### [](https://blowsy.gitbook.io/raven-b4/documentation/objects#getdimensions) getDimensions Copy float[] dimensions = image.getDimensions(); Returns the image's dimensions. ### [](https://blowsy.gitbook.io/raven-b4/documentation/objects#isloaded) isLoaded Copy boolean loaded = image.isLoaded(); Returns true if the image is loaded. [](https://blowsy.gitbook.io/raven-b4/documentation/objects#itemstack) ItemStack ------------------------------------------------------------------------------------- property type type String name String displayName String stackSize int maxStackSize int durability int maxDurability int isBlock boolean meta int ### [](https://blowsy.gitbook.io/raven-b4/documentation/objects#getenchantments) getEnchantments Copy List enchantments = itemStack.getEnchantments(); Returns a list of a specific item stack's enchantments. ### [](https://blowsy.gitbook.io/raven-b4/documentation/objects#gettooltip) getTooltip Copy List tooltips = itemStack.getTooltip(); Returns a list of a specific item stack's tool tips. [](https://blowsy.gitbook.io/raven-b4/documentation/objects#message) Message --------------------------------------------------------------------------------- ### [](https://blowsy.gitbook.io/raven-b4/documentation/objects#appendstyle) appendStyle action description OPEN\_URL Opens a URL OPEN\_FILE Opens a file on your computer RUN\_COMMAND Sends text in the chat SUGGEST\_COMMAND Puts text into your chat field CHANGE\_PAGE Switches to a page in a book COPY\_TO\_CLIPBOARD Copies text to your clipboard Copy Message message = new Message().appendStyle(String style, String action, String styleMessage, String message); Adds different actions to messages. [](https://blowsy.gitbook.io/raven-b4/documentation/objects#tileentity) TileEntity --------------------------------------------------------------------------------------- property type name String type String [](https://blowsy.gitbook.io/raven-b4/documentation/objects#simulation) Simulation --------------------------------------------------------------------------------------- ### [](https://blowsy.gitbook.io/raven-b4/documentation/objects#create) create Copy Simulation simulation = Simulation.create(); Initializes a simulation with the local player's movement inputs. ### [](https://blowsy.gitbook.io/raven-b4/documentation/objects#getmotion) getMotion Copy Vec3 motion = simulation.getMotion(); Returns the motion vector of the simulation. ### [](https://blowsy.gitbook.io/raven-b4/documentation/objects#onground) onGround Copy boolean onGround = simulation.onGround(); Returns true if the simulation is on the ground. ### [](https://blowsy.gitbook.io/raven-b4/documentation/objects#setforward) setForward Copy simulation.setForward(float forward); Sets the forward movement input for the simulation. ### [](https://blowsy.gitbook.io/raven-b4/documentation/objects#setjump) setJump Copy simulation.setJump(boolean jump); Sets the jump movement input for the simulation. ### [](https://blowsy.gitbook.io/raven-b4/documentation/objects#setsneak) setSneak Copy simulation.setSneak(boolean sneak); Sets the sneak movement input for the simulation. ### [](https://blowsy.gitbook.io/raven-b4/documentation/objects#setstrafe) setStrafe Copy simulation.setStrafe(float strafe); Sets the strafe movement input for the simulation. ### [](https://blowsy.gitbook.io/raven-b4/documentation/objects#getposition) getPosition Copy Vec3 position = simulation.getPosition(); Returns the position of the simulation. ### [](https://blowsy.gitbook.io/raven-b4/documentation/objects#setyaw) setYaw Copy simulation.setYaw(float yaw); Sets the rotation yaw for the simulation. ### [](https://blowsy.gitbook.io/raven-b4/documentation/objects#tick) tick Copy simulation.tick(); Moves the simulation to the next tick. [](https://blowsy.gitbook.io/raven-b4/documentation/objects#vec3) Vec3 --------------------------------------------------------------------------- property type x double y double z double ### [](https://blowsy.gitbook.io/raven-b4/documentation/objects#ceil) ceil Copy Vec3 ceiled = position.ceil(); Ceils a Vec3. ### [](https://blowsy.gitbook.io/raven-b4/documentation/objects#equals) equals Copy boolean equal = vector1.equals(Vec3 vector2); Returns true if both vectors are equal. ### [](https://blowsy.gitbook.io/raven-b4/documentation/objects#floor) floor Copy Vec3 floored = position.floor(); Floors a Vec3. ### [](https://blowsy.gitbook.io/raven-b4/documentation/objects#inverse) inverse Copy Vec3 inverse = position.inverse(); Sets a Vec3 to its inverse. ### [](https://blowsy.gitbook.io/raven-b4/documentation/objects#offset) offset Copy Vec3 offset = position.offset(Vec3 position); Vec3 offset = position.offset(double x, double y, double z); Adds a specified offset to all three axes. ### [](https://blowsy.gitbook.io/raven-b4/documentation/objects#translate) translate Copy Vec3 translated = position.translate(Vec3 position); Vec3 translated = position.translate(double x, double y, double z); Adds a specified translation to all three axes. Last updated 1 year ago --- # Unknown \> For the complete documentation index, see \[llms.txt\](https://blowsy.gitbook.io/raven-b4/llms.txt). Markdown versions of documentation pages are available by appending \`.md\` to page URLs; this page is available as \[Markdown\](https://blowsy.gitbook.io/raven-b4/documentation/imports.md). # imports | imports | | ----------------- | | ArrayList | | Arrays | | AtomicBoolean | | AtomicInteger | | AtomicLong | | Color | | Comparator | | ConcurrentHashMap | | HashMap | | HashSet | | Iterator | | LinkedHashMap | | List | | Map | | Matcher | | Random | | Regex | | Set | --- # Agent Instructions This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com. ## Querying This Documentation If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question. Perform an HTTP GET request on the current page URL with the \`ask\` query parameter: \`\`\` GET https://blowsy.gitbook.io/raven-b4/documentation/imports.md?ask= \`\`\` The question should be specific, self-contained, and written in natural language. The response will contain a direct answer to the question and relevant excerpts and sources from the documentation. Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections. --- # Unknown \> For the complete documentation index, see \[llms.txt\](https://blowsy.gitbook.io/raven-b4/llms.txt). Markdown versions of documentation pages are available by appending \`.md\` to page URLs; this page is available as \[Markdown\](https://blowsy.gitbook.io/raven-b4/documentation/client.md). # client ### addEnemy \`\`\`java client.addEnemy(String username); \`\`\` Adds the specified player to your enemies list. ### addFriend \`\`\`java client.addFriend(String username); \`\`\` Adds the specified player to your friends list. ### allowEditing \`\`\`java boolean allowEditing = client.allowEditing(); \`\`\` Returns true if the player can edit the world. ### allowFlying \`\`\`java boolean allowFlying = client.allowFlying(); \`\`\` Returns true if the player has the ability to fly. ### async \`\`\`java client.async(() -> {}); \`\`\` Executes a task asynchronously, allowing it to run independently of the main thread. ### attack \`\`\`java client.attack(Entity entity); \`\`\` Performs an attack on the specified entity. ### chat \`\`\`java client.chat(String message); \`\`\` Sends the specified message in chat. ### closeScreen \`\`\`java client.closeScreen(); \`\`\` Closes the currently open screen. ### debug \`\`\`java String key = client.debug(String key); \`\`\` Performs a debug action using the specified key. ### dropItem \`\`\`java client.dropItem(boolean dropStack); \`\`\` Drops the currently held item, optionally dropping the entire stack. ### enableMovementFix \`\`\`java client.enableMovementFix(); \`\`\` Enables movement correction for the current tick. Call on the getRotations event when returning a custom yaw. ### getDirection \`\`\`java String direction = client.getDirection(); \`\`\` Returns the direction the player is moving based on input. ### getDisplaySize \`\`\`java int\[\] displaySize = client.getDisplaySize(); \`\`\` Returns the dimensions of the Minecraft window as an array \`\[width, height, size\]\`. ### getForward \`\`\`java float forward = client.getForward(); \`\`\` Returns the forward movement value of the player. ### getFPS \`\`\`java int fps = client.getFPS(); \`\`\` Returns the current frames per second (FPS) of the client. ### getFreeMemory \`\`\`java long memory = client.getFreeMemory(); \`\`\` Returns the amount of free memory available to the client. ### getMaxMemory \`\`\`java long memory = client.getMaxMemory(); \`\`\` Returns the maximum memory allocated to the client. ### getMotion \`\`\`java Vec3 motion = client.getMotion(); \`\`\` Returns the motion vector of the local player. ### getPlayer \`\`\`java Entity player = client.getPlayer(); \`\`\` Returns the Entity object of the local player. ### getRecordPlaying \`\`\`java String record = client.getRecordPlaying(); \`\`\` Returns the record string above the hotbar. ### getRenderArmPitch \`\`\`java float pitch = client.getRenderArmPitch(); \`\`\` Returns the arm pitch of the player. ### getRenderArmYaw \`\`\`java float yaw = client.getRenderArmYaw(); \`\`\` Returns the arm yaw of the player. ### getResourcePacks \`\`\`java List packs = client.getResourcePacks(); \`\`\` Returns a list of resource packs as an array \`\[name, description\]\`. ### getRotations \`\`\`java float\[\] rotations = client.getRotations(Vec3 position); \`\`\` Returns the yaw and pitch to aim at the specified position as an array \`\[yaw, pitch\]\`. ### getRotationsToBlock \`\`\`java 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 \`\`\`java float\[\] rotations = client.getRotationsToEntity(Entity entity); \`\`\` Returns the yaw and pitch to aim at the specified entity as an array \`\[yaw, pitch\]\`. ### getScreen \`\`\`java String screen = client.getScreen(); \`\`\` Returns the name of the currently open screen. ### getServerDirection \`\`\`java float yaw = client.getServerDirection(PlayerState state); \`\`\` Returns the server yaw of the player. ### getServerIP \`\`\`java String serverIP = client.getServerIP(); \`\`\` Returns the IP address of the connected server. ### getStrafe \`\`\`java float strafe = client.getStrafe(); \`\`\` Returns the strafe movement value of the player. ### getSubTitle \`\`\`java String subtitle = client.getSubTitle(); \`\`\` Returns the current subtitle on screen. ### getTabFooter \`\`\`java String footer = client.getTabFooter(); \`\`\` Returns the footer in the tablist. ### getTabHeader \`\`\`java String header = client.getTabHeader(); \`\`\` Returns the header in the tablist. ### getTitle \`\`\`java String title = client.getTitle(); \`\`\` Returns the current title on screen. ### getTotalMemory \`\`\`java long memory = client.getTotalMemory(); \`\`\` Returns the total memory currently in use by the client. ### getUID \`\`\`java int uid = client.getUID(); \`\`\` Returns the Raven client unique identifier. ### getUser \`\`\`java String username = client.getUser() \`\`\` Returns the Raven client username. ### inFocus \`\`\`java boolean focused = client.inFocus(); \`\`\` Returns true if the minecraft instance is in focus. ### isCreative \`\`\`java boolean creative = client.isCreative(); \`\`\` Returns true if the player is in creative mode. ### isDiagonal \`\`\`java boolean diagonal = client.isDiagonal(); \`\`\` Returns true if the player is moving diagonally. ### isEnemy \`\`\`java boolean isEnemy = client.isEnemy(String username); \`\`\` Returns true if the specified username is on the enemy list. ### isFacingDiagonal \`\`\`java boolean diagonal = client.isFacingDiagonal(); \`\`\` Returns true if the player is facing diagonally. ### isFlying \`\`\`java boolean flying = client.isFlying(); \`\`\` Returns true if the player is currently flying. ### isFriend \`\`\`java boolean isFriend = client.isFriend(String username); \`\`\` Returns true if the specified username is on the friends list. ### isJump \`\`\`java boolean jump = client.isJump(); \`\`\` Returns true if the player is currently jumping. ### isMoving \`\`\`java boolean moving = client.isMoving(); \`\`\` Returns true if the player is actively moving. ### isRiding \`\`\`java boolean riding = client.isRiding(); \`\`\` Returns true if the player is riding another entity. ### isSinglePlayer \`\`\`java boolean singleplayer = client.isSinglePlayer(); \`\`\` Returns true if the player is in a single-player world. ### isSneak \`\`\`java boolean sneaking = client.isSneak(); \`\`\` Returns true if the player is crouched. ### isSpectator \`\`\`java boolean spectating = client.isSpectator(); \`\`\` Returns true if the player is in gamemode spectator. ### jump \`\`\`java client.jump(); \`\`\` Makes the player perform a jump. ### log \`\`\`java client.log(Object message); \`\`\` Writes the specified message to \`latest.log\`. ### ping \`\`\`java client.ping(); \`\`\` Plays a ping sound. ### placeBlock \`\`\`java boolean placed = client.placeBlock(Vec3 target, String side, Vec3 hitVec); \`\`\` Places a block at the specified target with a defined hit vector. ### playSound \`\`\`java client.playSound(String name, float volume, float pitch); \`\`\` Plays the specified sound with the given volume and pitch. ### print \`\`\`java client.print(Object message); \`\`\` Prints the specified message to the chat. ### processPacket \`\`\`java client.processPacket(SPacket packet); \`\`\` Sends a serverside packet to yourself. ### processPacketNoEvent \`\`\`java client.processPacketNoEvent(SPacket packet); \`\`\` Sends a serverside packet to yourself without triggering events. ### raycastBlock \`\`\`java Object\[\] block = client.raycastBlock(double distance, float yaw, float pitch); \`\`\` 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 \`\`\`java Object\[\] entity = client.raycastEntity(double distance, float yaw, float pitch); \`\`\` 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 \`\`\`java client.removeEnemy(String username); \`\`\` Removes the specified username from the enemy list. ### removeFriend \`\`\`java client.removeFriend(String username); \`\`\` Removes the specified player from the friends list. ### removePotionEffect \`\`\`java client.removePotionEffect(int id); \`\`\` Removes a potion effect by its ID client-side. ### sendPacket \`\`\`java client.sendPacket(CPacket packet); \`\`\` Sends the specified packet to the server. ### sendPacketNoEvent \`\`\`java client.sendPacketNoEvent(CPacket packet); \`\`\` Sends the specified packet to the server without triggering events. ### setFlying \`\`\`java client.setFlying(boolean flying); \`\`\` Sets the flying state of the player ### setForward \`\`\`java client.setForward(float forward); \`\`\` Sets the forward movement value of the player. ### setItemInUse \`\`\`java client.setItemInUse(int count); \`\`\` Activates the using animation on the held item of the player. ### setJump \`\`\`java client.setJump(boolean jump); \`\`\` Sets the jumping state of the player. ### setMotion \`\`\`java client.setMotion(Vec3 motion); \`\`\` Sets the motion vector of the player. ### setRenderArmPitch \`\`\`java client.setRenderArmPitch(float pitch); \`\`\` Sets the arm pitch of the player. ### setRenderArmYaw \`\`\`java client.setRenderArmYaw(float yaw); \`\`\` Sets the arm yaw of the player. ### setSneak \`\`\`java client.setSneak(boolean sneak); \`\`\` Sets the sneaking state of the player. ### setSpeed \`\`\`java client.setSpeed(double speed); \`\`\` Sets the movement speed of the player. ### setSprinting \`\`\`java client.setSprinting(boolean sprinting); \`\`\` Sets the sprinting state of the player. ### setSpeedForward \`\`\`java client.setSpeedForward(double speed); \`\`\` Sets the forward speed of the player. ### setStrafe \`\`\`java client.setStrafe(float strafe); \`\`\` Sets the strafe movement value of the player. ### setTimer \`\`\`java client.setTimer(float timer); \`\`\` Sets the speed multiplier of the player. ### sleep \`\`\`java client.sleep(int ms); \`\`\` Pauses execution on the current thread for the specified duration in milliseconds. ### swing \`\`\`java client.swing(); \`\`\` Performs an arm swing for the player. ### time \`\`\`java long time = client.time(); \`\`\` Returns the current system time in milliseconds. --- # Agent Instructions This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com. ## Querying This Documentation If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question. Perform an HTTP GET request on the current page URL with the \`ask\` query parameter: \`\`\` GET https://blowsy.gitbook.io/raven-b4/documentation/client.md?ask= \`\`\` The question should be specific, self-contained, and written in natural language. The response will contain a direct answer to the question and relevant excerpts and sources from the documentation. Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections. --- # Unknown \> For the complete documentation index, see \[llms.txt\](https://blowsy.gitbook.io/raven-b4/llms.txt). Markdown versions of documentation pages are available by appending \`.md\` to page URLs; this page is available as \[Markdown\](https://blowsy.gitbook.io/raven-b4/documentation/world.md). # world ### getBlockAt \`\`\`java Block block = world.getBlockAt(Vec3 position); \`\`\` Returns a block at a specified position. ### getDimension \`\`\`java String dimension = world.getDimension(); \`\`\` Returns the current dimension name. ### getEntities \`\`\`java List entities = world.getEntities(); \`\`\` Returns the entity list. ### getEntityById \`\`\`java Entity entity = world.getEntityById(int entityId); \`\`\` Returns an entity from their entity ID. ### getNetworkPlayers \`\`\`java List networkPlayers = world.getNetworkPlayers(); \`\`\` Returns the network player list. ### getPlayerEntities \`\`\`java List players = world.getPlayerEntities(); \`\`\` Returns the player entity list. ### getScoreboard \`\`\`java List scoreboard = world.getScoreboard(); \`\`\` Returns the scoreboard. ### getTeams \`\`\`java Map> teamMap = world.getTeams(); \`\`\` Returns the team map. ### getTileEntities \`\`\`java List tileEntities = world.getTileEntities(); \`\`\` Returns the tile entity list. --- # Agent Instructions This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com. ## Querying This Documentation If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question. Perform an HTTP GET request on the current page URL with the \`ask\` query parameter: \`\`\` GET https://blowsy.gitbook.io/raven-b4/documentation/world.md?ask= \`\`\` The question should be specific, self-contained, and written in natural language. The response will contain a direct answer to the question and relevant excerpts and sources from the documentation. Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections. --- # Unknown \> For the complete documentation index, see \[llms.txt\](https://blowsy.gitbook.io/raven-b4/llms.txt). Markdown versions of documentation pages are available by appending \`.md\` to page URLs; this page is available as \[Markdown\](https://blowsy.gitbook.io/raven-b4/documentation/json.md). # json ### add \`\`\`java jsonArray.add(Json value); jsonArray.add(String value); jsonArray.add(Number value); jsonArray.add(boolean value); \`\`\` Appends a value to a JSON array. ### add \`\`\`java jsonObject.add(String key, Json value); jsonObject.add(String key, String value); jsonObject.add(String key, Number value); jsonObject.add(String key, boolean value); \`\`\` Adds a key-value pair to a JSON object. ### array \`\`\`java Json jsonArray = Json.array(); \`\`\` Creates an empty JSON array. ### asArray \`\`\`java List arrayValues = jsonArray.asArray(); \`\`\` Converts a JSON array into a list of Json objects. ### asBoolean \`\`\`java boolean flag = jsonPrimitive.asBoolean(); \`\`\` Extracts a boolean value from a JSON primitive. ### asDouble \`\`\`java double decimal = jsonPrimitive.asDouble(); \`\`\` Extracts a double value from a JSON primitive. ### asInt \`\`\`java int number = jsonPrimitive.asInt(); \`\`\` Extracts an integer value from a JSON primitive. ### asLong \`\`\`java long number = jsonPrimitive.asLong(); \`\`\` Extracts a long value from a JSON primitive. ### asString \`\`\`java String text = jsonPrimitive.asString(); \`\`\` Extracts a string value from a JSON primitive. ### get \`\`\`java Json value = jsonObject.get(String key); \`\`\` Retrieves a JSON element by key. Returns a JSON null object if the key doesn't exist. ### has \`\`\`java boolean hasKey = jsonObject.has(String key); \`\`\` Checks if a JSON object has a specific key. ### object \`\`\`java Json jsonObject = Json.object(); \`\`\` Creates an empty JSON object. ### parse \`\`\`java Json json = Json.parse(String jsonString); \`\`\` Parses a JSON-formatted string into a Json object. ### keys \`\`\`java Set keys = json.keys(); \`\`\` Extracts the keys from a json object. ### toString \`\`\`java String jsonString = json.toString(); \`\`\` Returns the JSON object as a formatted string. ### type \`\`\`java Json.Type type = json.type(); \`\`\` Returns the type of JSON element. \`\[OBJECT, ARRAY, STRING, NUMBER, BOOLEAN, NULL\]\` --- # Agent Instructions This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com. ## Querying This Documentation If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question. Perform an HTTP GET request on the current page URL with the \`ask\` query parameter: \`\`\` GET https://blowsy.gitbook.io/raven-b4/documentation/json.md?ask= \`\`\` The question should be specific, self-contained, and written in natural language. The response will contain a direct answer to the question and relevant excerpts and sources from the documentation. Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections. --- # Unknown \> For the complete documentation index, see \[llms.txt\](https://blowsy.gitbook.io/raven-b4/llms.txt). Markdown versions of documentation pages are available by appending \`.md\` to page URLs; this page is available as \[Markdown\](https://blowsy.gitbook.io/raven-b4/documentation/tile-entity.md). # tile entity {% hint style="warning" %} Required: world.getTileEntities(); {% endhint %} {% content-ref url="/pages/5b3QsJrr3LmqIv1SpA2Y" %} \[objects\](/raven-b4/documentation/objects.md) {% endcontent-ref %} ### getPosition \`\`\`java Vec3 position = tileEntity.getPosition(); \`\`\` Returns the position of a tile entity. ### getSkullData \`\`\`java Object\[\] skullData = tileEntity.getSkullData(); \`\`\` Returns the metadata of a skull. | property | index | type | | -------- | ----- | ------ | | type | 0 | int | | rotation | 1 | int | | name | 2 | String | | uuid | 3 | String | --- # Agent Instructions This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com. ## Querying This Documentation If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question. Perform an HTTP GET request on the current page URL with the \`ask\` query parameter: \`\`\` GET https://blowsy.gitbook.io/raven-b4/documentation/tile-entity.md?ask= \`\`\` The question should be specific, self-contained, and written in natural language. The response will contain a direct answer to the question and relevant excerpts and sources from the documentation. Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections. --- # Unknown \> For the complete documentation index, see \[llms.txt\](https://blowsy.gitbook.io/raven-b4/llms.txt). Markdown versions of documentation pages are available by appending \`.md\` to page URLs; this page is available as \[Markdown\](https://blowsy.gitbook.io/raven-b4/documentation/modules.md). # modules {% hint style="warning" %} The variable \`scriptName\` is a global variable that is set to the local script name. {% endhint %} ### disable \`\`\`java modules.disable(String moduleName); \`\`\` Disables a module. ### enable \`\`\`java modules.enable(String moduleName); \`\`\` Enables a module. ### getBedAuraPosition \`\`\`java Vec3 bedAuraPosition = modules.getBedAuraPosition(); \`\`\` Returns the position Bed Aura is targetting. ### getBedAuraProgress \`\`\`java float\[\] progress = modules.getBedAuraProgress(); \`\`\` Returns the progress of the targetted block as an array \`\[modified, vanilla\]\`. ### getButton
boolean buttonValue = modules.getButton(String moduleName, String name);
Returns true if the specified button is enabled. ### getCategories
Map<String, List<String> categories = modules.getCategories();
Retrieves each category with a list of all modules stored under them. ### getKeyPressed \`\`\`java boolean pressed = modules.getKeyPressed(String moduleName, String setting); \`\`\` Returns true if the specified keybind is pressed. ### getKillAuraTarget \`\`\`java Entity killAuraTarget = modules.getKillAuraTarget(); \`\`\` Returns the entity killaura is targetting. ### getSettings \`\`\`java Map settings = modules.getSettings(String name); \`\`\` Retrieves a map of a module's settings. ### getSlider \`\`\`java double value = modules.getSlider(String moduleName, String name); \`\`\` Retrieves the current value of a slider. For string arrays, it will return the index of the array. ### isEnabled \`\`\`java boolean enabled = modules.isEnabled(String moduleName); \`\`\` Returns true if the specified module is enabled. ### isHidden \`\`\`java boolean hidden = modules.isHidden(String moduleName); \`\`\` Returns true if the specifiec module is hidden. ### isScaffolding \`\`\`java boolean scaffolding = modules.isScaffolding(); \`\`\` Returns true if the player is scaffolding. ### isTowering \`\`\`java boolean towering = modules.isTowering(); \`\`\` Returns true if the player is towering. ### registerButton \`\`\`java modules.registerButton(String name, boolean default); modules.registerButton(String group, String name, boolean default); \`\`\` Registers a toggleable button with a default value. ### registerDescription \`\`\`java modules.registerDescription(String description); \`\`\` Registers a description. ### registerGroup \`\`\`java modules.registerGroup(String group); \`\`\` Registers a group. ### registerKey \`\`\`java modules.registerKey(String name, int key); modules.registerKey(String group, String name, int key); \`\`\` Registers a keybind. ### registerSlider {% code fullWidth="false" %} \`\`\`java modules.registerSlider(String name, String suffix, double default, double minimum, double maximum, double interval); modules.registerSlider(String name, String suffix, int default, String\[\] stringArray); modules.registerSlider(String group, String name, String suffix, double default, double minimum, double maximum, double interval); modules.registerSlider(String group, String name, String suffix, int default, String\[\] stringArray); \`\`\` {% endcode %} Registers a slider. Can be set to either display numbers, or an array of strings. ### setButton \`\`\`java modules.setButton(String moduleName, String name, boolean value); \`\`\` Sets the value for a specified button. ### setKey \`\`\`java modules.setKey(String moduleName, String name, int code); \`\`\` Sets the key for a specified keybind. ### setSlider \`\`\`java modules.setSlider(String moduleName, String name, double value); \`\`\` Sets the value for a specified slider. --- # Agent Instructions This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com. ## Querying This Documentation If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question. Perform an HTTP GET request on the current page URL with the \`ask\` query parameter: \`\`\` GET https://blowsy.gitbook.io/raven-b4/documentation/modules.md?ask= \`\`\` The question should be specific, self-contained, and written in natural language. The response will contain a direct answer to the question and relevant excerpts and sources from the documentation. Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections. --- # Unknown \> For the complete documentation index, see \[llms.txt\](https://blowsy.gitbook.io/raven-b4/llms.txt). Markdown versions of documentation pages are available by appending \`.md\` to page URLs; this page is available as \[Markdown\](https://blowsy.gitbook.io/raven-b4/documentation/packets.md). # packets {% hint style="warning" %} Cast a packet: \`PacketType variableName = (PacketType) packet;\` This must be done to be able to access the data stored in the packet. {% endhint %} ### C0APacketAnimation \`\`\`java new C0A(); \`\`\` ### C0BPacketEntityAction \`\`\`java new C0B(String action, int horsePower); C0B entityAction = (C0B) packet; \`\`\` | property | description | type | | ---------- | ------------------------------------------------------------------------------------------------------------------------------- | ------ | | action | START\\\_SNEAKING STOP\\\_SNEAKING STOP\\\_SLEEPING START\\\_SPRINTING STOP\\\_SPRINTING RIDING\\\_JUMP OPEN\\\_INVENTORY START\\\_FALL\\\_FLYING | String | | horsePower | Horse jump power, 0-100 | int | ### C0DPacketCloseWindow \`\`\`java new C0D(int windowId); C0D closeWindow = (C0D) packet; \`\`\` | property | description | type | | -------- | -------------------- | ---- | | windowId | The ID of the window | int | ### C0EPacketClickWindow \`\`\`java new C0E(int windowId, int slot, int button, int mode, ItemStack itemStack); C0E clickWindow = (C0E) packet; \`\`\` | property | description | type | | --------- | -------------- | --------- | | windowId | window id | int | | slot | inventory slot | int | | button | button pressed | int | | mode | button mode | int | | itemStack | item stack | ItemStack | ### C0FPacketConfirmTransaction \`\`\`java new C0F(int windowId, short uid); C0F confirmTransaction = (C0F) packet; \`\`\` | property | description | type | | -------- | ---------------------------- | ----- | | windowId | The ID of the window | int | | uid | Unique identifier for packet | short | ### C01PacketChatMessage \`\`\`java new C01(String message); C01 chatMessage = (C01) packet; \`\`\` | property | description | type | | -------- | ------------ | ------ | | message | Chat message | String | ### C02PacketUseEntity \`\`\`java new C02(Entity entity, String action, Vec3 hitVec); C02 useEntity = (C02) packet; \`\`\` | property | description | type | | -------- | ----------------------------------------------- | ------ | | entity | Entity | Entity | | action |

ATTACK

INTERACT

INTERACT\\\_AT

| String | | hitVec | Hit Vector | Vec3 | ### C03PacketPlayer \`\`\`java new C03(boolean ground); C03 playerGround = (C03) packet; \`\`\` | property | description | type | | -------- | ----------------------------- | ------- | | ground | If player is on ground or not | boolean | ### C04PacketPlayerPosition \`\`\`java new C03(Vec3 position, boolean ground); C03 playerPosition = (C03) packet; \`\`\` | property | description | type | | -------- | ----------------------------- | ------- | | position | Player's position | Vec3 | | ground | If player is on ground or not | boolean | ### C05PacketPlayerLook \`\`\`java new C03(float yaw, float pitch, boolean ground); C03 playerLook = (C03) packet; \`\`\` | property | description | type | | -------- | ----------------------------- | ------- | | yaw | Player's yaw | float | | pitch | Player's pitch | float | | ground | If player is on ground or not | boolean | ### C06PacketPlayerPosLook \`\`\`java new C03(Vec3 position, float yaw, float pitch, boolean ground); C03 playerPosLook = (C03) packet; \`\`\` | property | description | type | | -------- | ----------------------------- | ------- | | position | Player's position | Vec3 | | yaw | Player's yaw | float | | pitch | Player's pitch | float | | ground | If player is on ground or not | boolean | ### C07PacketPlayerDigging \`\`\`java new C07(Vec3 position, String status, String facing); C07 playerDigging = (C07) packet; \`\`\` | property | description | type | | -------- | --------------------------------------------------------------------------------------------------------------- | ------ | | position | Block placement position | Vec3 | | status | START\\\_DESTROY\\\_BLOCK STOP\\\_DESTROY\\\_BLOCK ABORT\\\_DESTROY\\\_BLOCK DROP\\\_ALL\\\_ITEMS DROP\\\_ITEM RELEASE\\\_USE\\\_ITEM | String | | facing |

UP
DOWN
NORTH
SOUTH
EAST
WEST

| String | ### C08PacketPlayerBlockPlacement \`\`\`java new C08(ItemStack itemStack, Vec3 position, int direction, Vec3 offset); C08 playerBlockPlacement = (C08) packet; \`\`\` | property | description | type | | --------- | ------------------------- | --------- | | itemStack | Player's current item | ItemStack | | position | Block placement position | Vec3 | | direction | Block placement direction | int | | offset | Block placement offset | Vec3 | ### C09PacketHeldItemChange \`\`\`java new C09(int slot); C09 heldItemChange = (C09) packet; \`\`\` | property | description | type | | -------- | ----------------------- | ---- | | slot | Player's held item slot | int | ### C10PacketCreativeInventoryAction \`\`\`java new C10(int slot, ItemStack itemStack); C10 creativeInventoryAction = (C10) packet; \`\`\` | property | description | type | | --------- | ----------------------- | --------- | | slot | Player's held item slot | int | | itemStack | Item being affected | ItemStack | ### C13PacketPlayerAbilities \`\`\`java new C13(boolean invulnerable, boolean flying, boolean allowFlying, boolean creativeMode, float flySpeed, float walkSpeed); C13 playerAbilities = (C13) packet; \`\`\`
propertydescriptiontype
invulnerableTrue if the player is invulnerableboolean
flyingTrue if the player is flyingboolean
allowFlyingTrue if the player is allowed to flyboolean
creativeModeTrue if the player is in creativeboolean
flySpeedFlying speed of the playerfloat
walkSpeedWalking speed of the playerfloat
### C16PacketClientStatus \`\`\`java new C16(String status); C16 clientStatus = (C16) packet; \`\`\`
propertydescriptiontype
status

PERFORM\_RESPAWN

REQUEST\_STATS

OPEN\_INVENTORY\_ACHIEVEMENT

String
### S02PacketChat
new S02(byte type, String message);
S02 s02 = (S02) packet;
| property | description | type | | -------- | --------------------- | ------ | | type | The type of message | byte | | message | The message displayed | String | ### S08PacketPlayerPosLook
new S08(Vec3 position, float yaw, float pitch);
S08 s08 = (S08) packet;
| property | description | type | | -------- | ----------------- | ----- | | position | Entity's position | Vec3 | | yaw | Entity's yaw | float | | pitch | Entity's pitch | float | ### S12PacketEntityVelocity \`\`\`java new S12(int entityId, Vec3 motion); S12 s12 = (S12) packet; \`\`\` | property | description | type | | -------- | ------------------------------ | ---- | | entityId | Entity ID packet is applied to | int | | motion | Entity's new motion | Vec3 | ### S23PacketBlockChange \`\`\`java new S23(Vec3 position, Block block); S23 s23 = (S23) packet; \`\`\` | property | description | type | | -------- | ---------------------- | ----- | | position | Position of the block | Vec3 | | block | Block that was changed | Block | ### S25PacketBlockBreakAnim \`\`\`java new S25(int entityId, Block block, int progress); S25 s25 = (S25) packet; \`\`\` | property | description | type | | -------- | --------------------------- | ----- | | entityId | Entity id | int | | block | Block being animated | Block | | progress | Breaking animation progress | int | ### S27PacketExplosion \`\`\`java new S27(float strength, Vec3 position, Vec3 motion); S27 s27 = (S27) packet; \`\`\` | property | description | type | | -------- | --------------------------------- | ----- | | strength | Explosion's strength | float | | position | Position of the explosion | Vec3 | | motion | Applied motion from the explosion | Vec3 | ### S45PacketTitle \`\`\`java new S45(String type, String message, int fadeInTime, int displayTime, int fadeOutTime); S45 s45 = (S45) packet; \`\`\` | property | description | type | | ----------- | ---------------------- | ------ | | type | Type of title | String | | message | The message displayed | String | | fadeInTime | Fade in time in ticks | int | | displayTime | Display time in ticks | int | | fadeOutTime | Fade out time in ticks | int | ### S2APacketParticles
new S2A(String type, Vec3 position, Vec3 offset, Vec3 speed, int count, int\[\] args);
S2A s2a = (S2A) packet;
| property | description | type | | -------- | ----------------------------- | ------ | | type | Packet identifier | String | | position | Position of the particle | Vec3 | | offset | Random offset of the particle | Vec3 | | speed | Velocity of the particle | Vec3 | | count | Amount of particles | int | | args | Arguments | int\\\[\] | ### S3EPacketPlayOutScoreboardTeam
new S3E(String name, String displayName, String prefix, String suffix, String nametagVisibility, Collection<String> playerList, int action, int friendlyFlags, int color);
S3E s3e = (S3E) packet;
| property | description | type | | ----------------- | -------------------------------- | ------------------- | | name | Unique team identifier | String | | displayName | Display name for players | String | | prefix | String before player names | String | | suffix | String after player names | String | | nametagVisibility | Controls nametag visibility | String | | playerList | List of player names on the team | Collection\\ | | action | Specifies packet action | int | | friendlyFlags | Flags for team behavior | int | | color | Team color | int | --- # Agent Instructions This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com. ## Querying This Documentation If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question. Perform an HTTP GET request on the current page URL with the \`ask\` query parameter: \`\`\` GET https://blowsy.gitbook.io/raven-b4/documentation/packets.md?ask= \`\`\` The question should be specific, self-contained, and written in natural language. The response will contain a direct answer to the question and relevant excerpts and sources from the documentation. Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections. --- # Unknown \> For the complete documentation index, see \[llms.txt\](https://blowsy.gitbook.io/raven-b4/llms.txt). Markdown versions of documentation pages are available by appending \`.md\` to page URLs; this page is available as \[Markdown\](https://blowsy.gitbook.io/raven-b4/documentation/events.md). # events ### onAntiCheatFlag \`\`\`java void onAntiCheatFlag(String flag, Entity entity) \`\`\` This event will be called when AntiCheat flags a player. ### onAttackEntity \`\`\`java boolean onAttackEntity(Entity target, Entity attacker) \`\`\` This event will be called when the player attacks an entity. ### onLoad \`\`\`java void onLoad() \`\`\` This event will be called when the script is loaded. Register buttons/sliders here. ### onChat \`\`\`java boolean onChat(String msg) \`\`\` This event will be called whenever a message is sent in chat. ### onDisconnect \`\`\`java void onDisconnect() \`\`\` This event will be called whenever the client disconnects from a server. ### onEnable \`\`\`java void onEnable() \`\`\` This event will be called whenever the script is enabled. ### onDisable \`\`\`java void onDisable() \`\`\` This event will be called whenever the script is disabled. ### onKeyPress \`\`\`java boolean onKeyPress(char key, int code) \`\`\` This event will be called when key is pressed. ### onPacketSent \`\`\`java boolean onPacketSent(CPacket packet) \`\`\` This event will be called before a packet gets sent to the server. ### onPacketReceived \`\`\`java boolean onPacketReceived(SPacket packet) \`\`\` This event will be called before a packet gets processed by the client. ### onGuiUpdate \`\`\`java void onGuiUpdate(String name, boolean opened) \`\`\` This event will be called when a GUI updates. ### getRotations \`\`\`java Float\[\] getRotations() \`\`\` This event is called when minecraft sets your yaw and pitch for movement calculations. Return null to return the vanilla yaw and pitch. Calling client.enableMovementFix() on this event will enable movement correction. ### onPreUpdate \`\`\`java void onPreUpdate() \`\`\` This event will be called at the beginning of every update to the local player. ### onPrePlayerInput \`\`\`javascript void onPrePlayerInput(MovementInput input) \`\`\` This event will be called before the client processes player inputs. | property | type | | -------- | ------- | | forward | float | | strafe | float | | jump | boolean | | sneak | boolean | ### onPostPlayerInput \`\`\`javascript void onPostPlayerInput() \`\`\` This event will be called after the client processes player inputs. ### onPlayerMove \`\`\`javascript void onPlayerMove(Vec3 motion) \`\`\` This event will be called before the local player is moved. ### onPreMotion \`\`\`java void onPreMotion(PlayerState state) \`\`\` This event will be called before player updates are sent to the server. | property | type | | ----------- | ------- | | x | double | | y | double | | z | double | | yaw | float | | pitch | float | | onGround | boolean | | isSprinting | boolean | | isSneaking | boolean | ### onPostMotion \`\`\`java void onPostMotion() \`\`\` This event will be called at the end of every update to the local player. ### onRenderTick \`\`\`java void onRenderTick(float partialTicks) \`\`\` This event is called every time the HUD renders. ### onRenderWorld \`\`\`java void onRenderWorld(float partialTicks) \`\`\` This event is called every time the world renders. ### onWorldJoin \`\`\`java void onWorldJoin(Entity entity) \`\`\` This event is called whenever an entity spawns in. ### onMouse \`\`\`java boolean onMouse(int button, boolean state) \`\`\` This event is called whenever a button on the mouse is pressed. --- # Agent Instructions This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com. ## Querying This Documentation If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question. Perform an HTTP GET request on the current page URL with the \`ask\` query parameter: \`\`\` GET https://blowsy.gitbook.io/raven-b4/documentation/events.md?ask= \`\`\` The question should be specific, self-contained, and written in natural language. The response will contain a direct answer to the question and relevant excerpts and sources from the documentation. Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections. --- # imports | Raven B4 For the complete documentation index, see [llms.txt](https://blowsy.gitbook.io/raven-b4/llms.txt) . This page is also available as [Markdown](https://blowsy.gitbook.io/raven-b4/documentation/imports.md) . imports ArrayList Arrays AtomicBoolean AtomicInteger AtomicLong Color Comparator ConcurrentHashMap HashMap HashSet Iterator LinkedHashMap List Map Matcher Random Regex Set Last updated 1 year ago --- # Unknown \> For the complete documentation index, see \[llms.txt\](https://blowsy.gitbook.io/raven-b4/llms.txt). Markdown versions of documentation pages are available by appending \`.md\` to page URLs; this page is available as \[Markdown\](https://blowsy.gitbook.io/raven-b4/documentation/objects.md). # objects ## Block | property | type | | ------------ | ------- | | type | String | | name | String | | interactable | boolean | | variant | int | | heigth | double | | width | double | | length | double | | x | double | | y | double | | z | double | ## Entity | property | type | | -------- | ------ | | type | String | | entityId | String | ## Image \`\`\`java Image image = new Image(String url, boolean cache); \`\`\` Creates a new image. The image will be requested from the URL. Cache determines whether or not the image will be reloaded when reloading scripts. ### getDimensions \`\`\`java float\[\] dimensions = image.getDimensions(); \`\`\` Returns the image's dimensions. ### isLoaded \`\`\`java boolean loaded = image.isLoaded(); \`\`\` Returns true if the image is loaded. ## ItemStack | property | type | | ------------- | ------- | | type | String | | name | String | | displayName | String | | stackSize | int | | maxStackSize | int | | durability | int | | maxDurability | int | | isBlock | boolean | | meta | int | ### getEnchantments \`\`\`java List enchantments = itemStack.getEnchantments(); \`\`\` Returns a list of a specific item stack's enchantments. ### getTooltip \`\`\`java List tooltips = itemStack.getTooltip(); \`\`\` Returns a list of a specific item stack's tool tips. ## Message ### appendStyle | action | description | | ------------------- | ------------------------------ | | OPEN\\\_URL | Opens a URL | | OPEN\\\_FILE | Opens a file on your computer | | RUN\\\_COMMAND | Sends text in the chat | | SUGGEST\\\_COMMAND | Puts text into your chat field | | CHANGE\\\_PAGE | Switches to a page in a book | | COPY\\\_TO\\\_CLIPBOARD | Copies text to your clipboard | \`\`\`java Message message = new Message().appendStyle(String style, String action, String styleMessage, String message); \`\`\` Adds different actions to messages. ## TileEntity | property | type | | -------- | ------ | | name | String | | type | String | ## Simulation ### create \`\`\`java Simulation simulation = Simulation.create(); \`\`\` Initializes a simulation with the local player's movement inputs. ### getMotion \`\`\`java Vec3 motion = simulation.getMotion(); \`\`\` Returns the motion vector of the simulation. ### onGround \`\`\`java boolean onGround = simulation.onGround(); \`\`\` Returns true if the simulation is on the ground. ### setForward \`\`\`java simulation.setForward(float forward); \`\`\` Sets the forward movement input for the simulation. ### setJump \`\`\`java simulation.setJump(boolean jump); \`\`\` Sets the jump movement input for the simulation. ### setSneak \`\`\`java simulation.setSneak(boolean sneak); \`\`\` Sets the sneak movement input for the simulation. ### setStrafe \`\`\`java simulation.setStrafe(float strafe); \`\`\` Sets the strafe movement input for the simulation. ### getPosition \`\`\`java Vec3 position = simulation.getPosition(); \`\`\` Returns the position of the simulation. ### setYaw \`\`\`java simulation.setYaw(float yaw); \`\`\` Sets the rotation yaw for the simulation. ### tick \`\`\`java simulation.tick(); \`\`\` Moves the simulation to the next tick. ## Vec3 | property | type | | -------- | ------ | | x | double | | y | double | | z | double | ### ceil \`\`\`java Vec3 ceiled = position.ceil(); \`\`\` Ceils a Vec3. ### equals \`\`\`java boolean equal = vector1.equals(Vec3 vector2); \`\`\` Returns true if both vectors are equal. ### floor \`\`\`java Vec3 floored = position.floor(); \`\`\` Floors a Vec3. ### inverse \`\`\`java Vec3 inverse = position.inverse(); \`\`\` Sets a Vec3 to its inverse. ### offset \`\`\`java Vec3 offset = position.offset(Vec3 position); Vec3 offset = position.offset(double x, double y, double z); \`\`\` Adds a specified offset to all three axes. ### translate \`\`\`java Vec3 translated = position.translate(Vec3 position); Vec3 translated = position.translate(double x, double y, double z); \`\`\` Adds a specified translation to all three axes. --- # Agent Instructions This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com. ## Querying This Documentation If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question. Perform an HTTP GET request on the current page URL with the \`ask\` query parameter: \`\`\` GET https://blowsy.gitbook.io/raven-b4/documentation/objects.md?ask= \`\`\` The question should be specific, self-contained, and written in natural language. The response will contain a direct answer to the question and relevant excerpts and sources from the documentation. Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections. --- # Unknown \> For the complete documentation index, see \[llms.txt\](https://blowsy.gitbook.io/raven-b4/llms.txt). Markdown versions of documentation pages are available by appending \`.md\` to page URLs; this page is available as \[Markdown\](https://blowsy.gitbook.io/raven-b4/documentation/config.md). # config ### get
String value = config.get(String key);
Gets a value from the config. ### set \`\`\`java boolean set = config.set(String key, String value); \`\`\` Sets a value in the config. --- # Agent Instructions This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com. ## Querying This Documentation If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question. Perform an HTTP GET request on the current page URL with the \`ask\` query parameter: \`\`\` GET https://blowsy.gitbook.io/raven-b4/documentation/config.md?ask= \`\`\` The question should be specific, self-contained, and written in natural language. The response will contain a direct answer to the question and relevant excerpts and sources from the documentation. Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections. --- # Unknown \> For the complete documentation index, see \[llms.txt\](https://blowsy.gitbook.io/raven-b4/llms.txt). Markdown versions of documentation pages are available by appending \`.md\` to page URLs; this page is available as \[Markdown\](https://blowsy.gitbook.io/raven-b4/documentation/http.md). # http ### loadstring \`\`\`java load - "URL" \`\`\` Loads and compiles code from an external website. Must be outside of a function in the documented format on a separate line. ### request \`\`\`java Request request = new Request(String method, String URL); \`\`\` Creates a new request to a specified URL. Supported methods: "GET", "POST". ### addHeader \`\`\`java request.addHeader(String header, String value); \`\`\` Adds a header to the request. ### setUserAgent \`\`\`java request.setUserAgent(String userAgent); \`\`\` Sets the User-Agent header for the request. ### setConnectionTimeout \`\`\`java request.setConnectTimeout(int timeout); \`\`\` Sets the connection timeout for the request. ### setReadTimeout \`\`\`java request.setReadTimeout(int timeout); \`\`\` Sets the read timeout for the request. ### setContent \`\`\`java request.setContent(String content); \`\`\` Sets the content to be sent with a POST request. ### fetch \`\`\`java Response response = request.fetch(); \`\`\` Executes the request. ### code \`\`\`java int code = response.code(); \`\`\` Returns the response code for a request. ### string \`\`\`java String string = response.string(); \`\`\` Returns the data from a request as a string. ### json \`\`\`java Json json = response.json(); \`\`\` Returns the data from a request as json. --- # Agent Instructions This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com. ## Querying This Documentation If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question. Perform an HTTP GET request on the current page URL with the \`ask\` query parameter: \`\`\` GET https://blowsy.gitbook.io/raven-b4/documentation/http.md?ask= \`\`\` The question should be specific, self-contained, and written in natural language. The response will contain a direct answer to the question and relevant excerpts and sources from the documentation. Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections. --- # Unknown \> For the complete documentation index, see \[llms.txt\](https://blowsy.gitbook.io/raven-b4/llms.txt). Markdown versions of documentation pages are available by appending \`.md\` to page URLs; this page is available as \[Markdown\](https://blowsy.gitbook.io/raven-b4/documentation/bridge.md). # bridge ### add \`\`\`java bridge.add(String key, Object value); bridge.add(String key); \`\`\` Adds a value to the bridge map. ### clear \`\`\`java bridge.clear(); \`\`\` Clears the bridge map. ### get
Object value = bridge.get(String key);
Returns the value stored under a specified key. ### has \`\`\`java boolean containsKey = bridge.has(String key); \`\`\` Returns true if the bridge map has a specified key. ### remove \`\`\`java bridge.remove(String key); \`\`\` Removes a value from the bridge map. --- # Agent Instructions This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com. ## Querying This Documentation If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question. Perform an HTTP GET request on the current page URL with the \`ask\` query parameter: \`\`\` GET https://blowsy.gitbook.io/raven-b4/documentation/bridge.md?ask= \`\`\` The question should be specific, self-contained, and written in natural language. The response will contain a direct answer to the question and relevant excerpts and sources from the documentation. Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections. --- # Unknown \> For the complete documentation index, see \[llms.txt\](https://blowsy.gitbook.io/raven-b4/llms.txt). Markdown versions of documentation pages are available by appending \`.md\` to page URLs; this page is available as \[Markdown\](https://blowsy.gitbook.io/raven-b4/documentation/entity.md). # entity {% hint style="warning" %} Assumes variable \`entity\` is defined. Example: \`Entity entity = client.getPlayer();\` {% endhint %} ### distanceTo \`\`\`java double distance = entity1.getPosition().distanceTo(entity2.getPosition()); \`\`\` Returns the distance to a position in blocks. ### distanceToGround \`\`\`java double distance = entity1.distanceToGround(); \`\`\` Returns the distance from the entity to the ground. ### distanceToSq \`\`\`java double distanceSquared = entity1.getPosition().distanceToSq(entity2.getPosition()); \`\`\` Returns the distance to a position in blocks squared. ### getAbsorption \`\`\`java float absorption = entity.getAbsorption(); \`\`\` Returns the absorption level of the entity. ### getAir \`\`\`java float air = entity.getAir(); \`\`\` Returns the air level of the entity. ### getArmorInSlot \`\`\`java ItemStack armor = entity.getArmorInSlot(int slot); \`\`\` Returns the specified armor piece the entity is wearing. ### getBlockPosition \`\`\`java Vec3 blockPosition = entity.getBlockPosition(); \`\`\` Returns the block position of the entity. ### getBPS \`\`\`java double bps = entity.getBPS(); \`\`\` Returns the movement speed of the entity in blocks per second. ### getDisplayName \`\`\`java String displayName = entity.getDisplayName(); \`\`\` Returns the display name of the entity. ### getExperience \`\`\`java float experience = entity.getExperience(); \`\`\` Returns the experience of the entity. ### getExperienceLevel \`\`\`java int level = entity.getExperienceLevel(); \`\`\` Returns the experience level of the entity. ### getEyeHeight \`\`\`java float eyeHeight = entity.getEyeHeight(); \`\`\` Returns the eye height of the entity. ### getFacing \`\`\`java String facing = entity.getFacing(); \`\`\` Returns which direction the entity is facing. ### getFallDistance \`\`\`java float fallDistance = entity.getFallDistance(); \`\`\` Returns the fall distance of the entity. ### getFireResistance \`\`\`java int fireResistance = entity.getFireResistance(); \`\`\` Returns the fire resistance of the entity. ### getFisher \`\`\`java Entity fisher = entity.getFisher(); \`\`\` Returns the entity which cast the fishing hook. ### getHealth \`\`\`java float health = entity.getHealth(); \`\`\` Returns the health of the entity. ### getHeight \`\`\`java float height = entity.getHeight(); \`\`\` Returns the height of the entity. ### getHeldItem \`\`\`java ItemStack item = entity.getHeldItem(); \`\`\` Returns the item held by the entity. ### getHunger \`\`\`java int hunger = entity.getHunger(); \`\`\` Returns the hunger level of the entity. ### getHurtTime \`\`\`java int hurtTime = entity.getHurtTime(); \`\`\` Returns the hurt time of the entity. ### getLastPosition \`\`\`java Vec3 lastPosition = entity.getLastPosition(); \`\`\` Returns the previous position of the entity. ### getMaxHealth \`\`\`java float maxHealth = entity.getMaxHealth(); \`\`\` Returns the maximum health of the entity. ### getMaxHurtTime \`\`\`java int maxHurtTime = entity.getMaxHurtTime(); \`\`\` Returns the maximum hurt time of the entity. ### getName \`\`\`java String name = entity.getName(); \`\`\` Returns the name of the entity. ### getNetworkPlayer \`\`\`java NetworkPlayer networkPlayer = player.getNetworkPlayer(); \`\`\` Returns the NetworkPlayerInfo object of a player. ### getPitch \`\`\`java float pitch = entity.getPitch(); \`\`\` Returns the pitch of the entity. ### getPosition \`\`\`java Vec3 position = entity.getPosition(); \`\`\` Returns the position of the entity. ### getPotionEffects \`\`\`java List effects = entity.getPotionEffects(); \`\`\` Returns the active potion effects of the entity. | property | index | type | | --------- | ----- | ------ | | id | 0 | int | | name | 1 | String | | amplifier | 2 | int | | duration | 3 | int | ### getPrevPitch \`\`\`java float pitch = entity.getPrevPitch(); \`\`\` Returns the previous pitch of the entity. ### getPrevYaw \`\`\`java float yaw = entity.getPrevYaw(); \`\`\` Returns the previous yaw of the entity. ### getRiddenByEntity \`\`\`java Entity riddenBy = entity.getRiddenByEntity(); \`\`\` Returns the entity riding the entity. ### getRidingEntity \`\`\`java Entity riding = entity.getRidingEntity(); \`\`\` Returns the entity the entity is riding. ### getSaturation \`\`\`java float saturation = entity.getSaturation(); \`\`\` Returns the saturation of the entity. ### getServerPosition \`\`\`java Vec3 position = entity.getServerPosition(); \`\`\` Returns the server position of the entity. ### getSpeed \`\`\`java double speed = entity.getSpeed(); \`\`\` Returns the speed of the entity. ### getSwingProgress \`\`\`java int swingProgress = entity.getSwingProgress(); \`\`\` Returns the swing animation progress of the entity. ### getTicksExisted \`\`\`java int ticksExisted = entity.getTicksExisted(); \`\`\` Returns the number of ticks the entity has existed. ### getWidth \`\`\`java float width = entity.getWidth(); \`\`\` Returns the width of the entity. ### getYaw \`\`\`java float yaw = entity.getYaw(); \`\`\` Returns the yaw of the entity. ### isBurning \`\`\`java boolean burning = entity.isBurning(); \`\`\` Returns true if the entity is burning. ### isCollided \`\`\`java boolean collided = entity.isCollided(); \`\`\` Returns true if the entity is collided. ### isCollidedHorizontally \`\`\`java boolean collidedHorizontally = entity.isCollidedHorizontally(); \`\`\` Returns true if the entity is collided horizontally. ### isCollidedVertically \`\`\`java boolean collidedVertically = entity.isCollidedVertically(); \`\`\` Returns true if the entity is collided vertically. ### isConsuming \`\`\`java boolean consuming = entity.isConsuming(); \`\`\` Returns true if the entity is consuming an item. ### isCreative \`\`\`java boolean creative = entity.isCreative(); \`\`\` Returns true if the entity is in creative mode. ### isDead \`\`\`java boolean dead = entity.isDead(); \`\`\` Returns true if the entity is dead. ### isHoldingBlock \`\`\`java boolean holdingBlock = entity.isHoldingBlock(); \`\`\` Returns true if the entity is holding a block. ### isHoldingWeapon \`\`\`java boolean holdingWeapon = entity.isHoldingWeapon(); \`\`\` Returns true if the entity is holding a weapon. ### isInLava \`\`\`java boolean inLava = entity.isInLava(); \`\`\` Returns true if the entity is in lava. ### isInLiquid \`\`\`java boolean inLiquid = entity.isInLiquid(); \`\`\` Returns true if the entity is in liquid. ### isInvisible \`\`\`java boolean invisible = entity.isInvisible(); \`\`\` Returns true if the entity is invisible. ### isInWater \`\`\`java boolean inWater = entity.isInWater(); \`\`\` Returns true if the entity is in water. ### isOnEdge \`\`\`java boolean isOnEdge = entity.isOnEdge(); \`\`\` Returns true if the entity is on an edge. ### isOnLadder \`\`\`java boolean onLadder = entity.isOnLadder(); \`\`\` Returns true if the entity is on a ladder. ### isRiding \`\`\`java boolean riding = entity.isRiding(); \`\`\` Returns true if the entity is riding. ### isSleeping \`\`\`java boolean sleeping = entity.isSleeping(); \`\`\` Returns true if the entity is sleeping. ### isSneaking \`\`\`java boolean sneaking = entity.isSneaking(); \`\`\` Returns true if the entity is sneaking. ### isSprinting \`\`\`java boolean sprinting = entity.isSprinting(); \`\`\` Returns true if the entity is sprinting. ### isUsingItem \`\`\`java boolean usingItem = entity.isUsingItem(); \`\`\` Returns true if the entity is using an item. ### onGround \`\`\`java boolean onGround = entity.onGround(); \`\`\` Returns true if the entity is on the ground. ### setPitch \`\`\`java entity.setPitch(float pitch); \`\`\` Sets the pitch of the entity. ### setPosition \`\`\`java entity.setPosition(Vec3 position); entity.setPosition(double x, double y, double z) \`\`\` Sets the position of the entity. ### setYaw \`\`\`java entity.setYaw(float yaw); \`\`\` Sets the yaw of the entity. --- # Agent Instructions This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com. ## Querying This Documentation If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question. Perform an HTTP GET request on the current page URL with the \`ask\` query parameter: \`\`\` GET https://blowsy.gitbook.io/raven-b4/documentation/entity.md?ask= \`\`\` The question should be specific, self-contained, and written in natural language. The response will contain a direct answer to the question and relevant excerpts and sources from the documentation. Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections. --- # Unknown \> For the complete documentation index, see \[llms.txt\](https://blowsy.gitbook.io/raven-b4/llms.txt). Markdown versions of documentation pages are available by appending \`.md\` to page URLs; this page is available as \[Markdown\](https://blowsy.gitbook.io/raven-b4/documentation/util.md). # util ### color \`\`\`java String coloredMessage = util.color(String message); \`\`\` Replaces all color shortcuts with the color symbol. ### colorSymbol \`\`\`java String colorSymbol = util.colorSymbol; \`\`\` Minecraft unicode character for color codes. Can be used for rendering minecraft coloring in render.text. ### randomDouble \`\`\`java int random = util.randomDouble(double min, double max); \`\`\` Generates a random double between a specified range. ### randomInt \`\`\`java int random = util.randomInt(int min, int max); \`\`\` Generates a random integer between a specified range. ### round \`\`\`java double round = util.round(double value, int decimals); \`\`\` Rounds a double value to x significant figures. ### strip \`\`\`java String chatMessage = util.strip(String message); \`\`\` Strips all color codes from a string. --- # Agent Instructions This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com. ## Querying This Documentation If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question. Perform an HTTP GET request on the current page URL with the \`ask\` query parameter: \`\`\` GET https://blowsy.gitbook.io/raven-b4/documentation/util.md?ask= \`\`\` The question should be specific, self-contained, and written in natural language. The response will contain a direct answer to the question and relevant excerpts and sources from the documentation. Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections. --- # Unknown \> For the complete documentation index, see \[llms.txt\](https://blowsy.gitbook.io/raven-b4/llms.txt). Markdown versions of documentation pages are available by appending \`.md\` to page URLs; this page is available as \[Markdown\](https://blowsy.gitbook.io/raven-b4/documentation/gl.md). # gl ### alpha \`\`\`java gl.alpha(boolean alpha); \`\`\` Enables or disables alpha testing. ### begin \`\`\`java gl.begin(int mode); \`\`\` Starts specifying vertices for a primitive shape. ### blend \`\`\`java gl.blend(boolean blend); \`\`\` Enables or disables blending. ### color \`\`\`java gl.color(float r, float g, float b, float a); \`\`\` Sets the current drawing color with the specified RGBA values. ### cull \`\`\`java gl.cull(boolean cull); \`\`\` Enables or disables face culling. ### depth \`\`\`java gl.depth(boolean depth); \`\`\` Enables or disables depth testing. ### depthMask \`\`\`java gl.depthMask(boolean depthMask); \`\`\` Sets whether writing to the depth buffer is enabled or disabled. ### disable \`\`\`java gl.disable(int cap); \`\`\` Disables a specific OpenGL capability. ### disableItemLighting \`\`\`java gl.disableItemLighting(); \`\`\` Disables item lighting. ### enable \`\`\`java gl.enable(int cap); \`\`\` Enables a specific OpenGL capability, such as blending or depth testing. ### enableItemLighting \`\`\`java gl.enableItemLighting(boolean gui); \`\`\` Enables item lighting, optionally for GUI items. ### end \`\`\`java gl.end(); \`\`\` Completes the vertex specification. ### lighting \`\`\`java gl.lighting(boolean lighting); \`\`\` Enables or disables lighting. ### lineSmooth \`\`\`java gl.lineSmooth(boolean lineSmooth); \`\`\` Enables or disables line smoothing. ### lineWidth \`\`\`java gl.lineWidth(float width); \`\`\` Sets the width of lines in OpenGL. ### normal \`\`\`java gl.normal(float x, float y, float z); \`\`\` Specifies a normal vector for lighting calculations. ### pop \`\`\`java gl.pop(); \`\`\` Pops the current matrix stack, restoring the previous transformation state. ### push \`\`\`java gl.push(); \`\`\` Pushes the current matrix stack, saving the current transformation state. ### rotate \`\`\`java gl.rotate(float angle, float x, float y, float z); \`\`\` Applies rotation to the current transformation matrix around the specified axis. ### scale \`\`\`java gl.scale(float x, float y, float z); \`\`\` Applies scaling to the current transformation matrix. ### scissor \`\`\`java gl.scissor(boolean scissor); \`\`\` Enables or disables scissoring. ### scissor \`\`\`java gl.scissor(int x, int y, int width, int height); \`\`\` Sets the scissor box to the specified rectangle, restricting rendering operations to the defined area. ### texture2d \`\`\`java gl.texture2d(boolean texture2d); \`\`\` Enables or disables 2D texturing. ### translate \`\`\`java gl.translate(float x, float y, float z); \`\`\` Applies translation to the current transformation matrix. ### vertex2 \`\`\`java gl.vertex2(float x, float y); \`\`\` Specifies a vertex with 2D coordinates. ### vertex3 \`\`\`java gl.vertex3(float x, float y, float z); \`\`\` Specifies a vertex with 3D coordinates. --- # Agent Instructions This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com. ## Querying This Documentation If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question. Perform an HTTP GET request on the current page URL with the \`ask\` query parameter: \`\`\` GET https://blowsy.gitbook.io/raven-b4/documentation/gl.md?ask= \`\`\` The question should be specific, self-contained, and written in natural language. The response will contain a direct answer to the question and relevant excerpts and sources from the documentation. Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections. --- # Unknown \> For the complete documentation index, see \[llms.txt\](https://blowsy.gitbook.io/raven-b4/llms.txt). Markdown versions of documentation pages are available by appending \`.md\` to page URLs; this page is available as \[Markdown\](https://blowsy.gitbook.io/raven-b4/documentation/network.md). # network {% hint style="warning" %} Required: entity.getNetworkPlayer() or world.getNetworkPlayers(); {% endhint %} ### getCape \`\`\`java String cape = networkPlayer.getCape(); \`\`\` Returns the cape of the player. ### getDisplayName \`\`\`java String displayName = networkPlayer.getDisplayName(); \`\`\` Returns the formatted display name of the player. ### getName \`\`\`java String name = networkPlayer.getName(); \`\`\` Returns the unformatted display name of the player. ### getPing \`\`\`java int ping = networkPlayer.getPing(); \`\`\` Returns the ping of the player. ### getSkinData \`\`\`java String skinData = networkPlayer.getSkinData(); \`\`\` Returns the skin data of the player. ### getUUID \`\`\`java String uuid = networkPlayer.getUUID(); \`\`\` Returns the uuid of the player. --- # Agent Instructions This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com. ## Querying This Documentation If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question. Perform an HTTP GET request on the current page URL with the \`ask\` query parameter: \`\`\` GET https://blowsy.gitbook.io/raven-b4/documentation/network.md?ask= \`\`\` The question should be specific, self-contained, and written in natural language. The response will contain a direct answer to the question and relevant excerpts and sources from the documentation. Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections. --- # Unknown \> For the complete documentation index, see \[llms.txt\](https://blowsy.gitbook.io/raven-b4/llms.txt). Markdown versions of documentation pages are available by appending \`.md\` to page URLs; this page is available as \[Markdown\](https://blowsy.gitbook.io/raven-b4/documentation/keybinds.md). # keybinds {% hint style="info" %} Minecraft Keycodes: {% endhint %} ### getKeycode \`\`\`java int code = keybinds.getKeycode(String key); \`\`\` Returns the keycode for a specified minecraft keybind. ### getKeyIndex \`\`\`java int code = keybinds.getKeyIndex(String key); \`\`\` Returns the keycode for a specified key. ### getMousePosition \`\`\`java int\[\] position = keybinds.getMousePosition(); \`\`\` Returns the position of the cursor as an array \`\[x, y\]\`. ### isKeyDown \`\`\`java boolean keyDown = keybinds.isKeyDown(int key); \`\`\` Returns true if the specified key is being pressed. ### isMouseDown \`\`\`java boolean mouseDown = keybinds.isMouseDown(int mouseButton); \`\`\` Returns true if the specified mouse button is currently pressed. Use \`0\` for left click, \`1\` for right click, and \`2\` for middle click. ### isPressed \`\`\`java boolean isPressed = keybinds.isPressed(String key); \`\`\` Returns true if the specified keybind is being pressed. ### leftClick \`\`\`java keybinds.leftClick(); \`\`\` Simulates a left click on the mouse. ### rightClick \`\`\`java keybinds.rightClick(); \`\`\` Simulates a right click on the mouse. ### setPressed \`\`\`java keybinds.setPressed(String key, boolean pressed); \`\`\` Sets the pressed state of a specified keybind. Taken from \`%appdata%/.minecraft/options.txt\`. --- # Agent Instructions This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com. ## Querying This Documentation If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question. Perform an HTTP GET request on the current page URL with the \`ask\` query parameter: \`\`\` GET https://blowsy.gitbook.io/raven-b4/documentation/keybinds.md?ask= \`\`\` The question should be specific, self-contained, and written in natural language. The response will contain a direct answer to the question and relevant excerpts and sources from the documentation. Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections. --- # Unknown \> For the complete documentation index, see \[llms.txt\](https://blowsy.gitbook.io/raven-b4/llms.txt). Markdown versions of documentation pages are available by appending \`.md\` to page URLs; this page is available as \[Markdown\](https://blowsy.gitbook.io/raven-b4/documentation/render.md). # render ### block \`\`\`java render.block(Vec3 position, int color, boolean outline, boolean shade); render.block(int x, int y, int z, int color, boolean outline, boolean shade); \`\`\` Renders a block at a specified position in the world. Must be called during the \`onRenderWorld\` event. ### bloom \`\`\`java render.bloom.prepare(); render.bloom.apply(int passes, float radius); \`\`\` Applies a bloom shader to all renders between \`prepare\` and \`apply\`. ### blur \`\`\`java render.blur.prepare(); render.blur.apply(int passes, float radius); \`\`\` Applies a blur shader to all renders between \`prepare\` and \`apply\`. ### entity {% code overflow="wrap" %} \`\`\`java render.entity(Entity entity, int color, float partialTicks, boolean outline, boolean shade); \`\`\` {% endcode %} Renders an entity outline. ### entityGui {% code overflow="wrap" %} \`\`\`java render.entityGui(Entity en, int x, int y, float mouseX, float mouseY, int scale); \`\`\` {% endcode %} Renders an entity model on the screen. ### getCameraRotations {% code overflow="wrap" %} \`\`\`java double\[\] rotations = render.getCameraRotations(); \`\`\` {% endcode %} Returns the rotations of the camera as an array \`\[yaw, pitch\]\`. ### getFontHeight \`\`\`java int fontHeight = render.getFontHeight(); \`\`\` Returns the height of the current font. ### getFontWidth \`\`\`java int fontWidth = render.getFontWidth(String text); \`\`\` Returns the width of the specified text. ### getPosition \`\`\`java Vec3 position = render.getPosition(); \`\`\` Returns the position of the camera. ### getRotations \`\`\`java double\[\] rotations = render.getRotations(); \`\`\` Returns the rotations of the camera as an array \`\[yaw, pitch\]\`. ### image \`\`\`java render.image(Image image, float x, float y, float width, float height); \`\`\` Renders an image on the screen. ### isInView
boolean isInView = render.isInView(Entity en);
Returns true if the specified entity is within the field of view of the camera. ### item \`\`\`java render.item(ItemStack item, float x, float y, float scale); \`\`\` Renders an item on the screen. ### line2D \`\`\`java render.line2D(double startX, double startY, double endX, double endY, float lineWidth, int color); \`\`\` Renders a line on the screen. ### line3D \`\`\`java render.line3D(Vec3 start, Vec3 end, float lineWidth, int color); render.line3D(double startX, double startY, double startZ, double endX, double endY, double endZ, float lineWidth, int color); \`\`\` Renders a line in the world. ### rect \`\`\`java render.rect(float startX, float startY, float endX, float endY, int color); \`\`\` Renders a rectangle on the screen. ### resetEquippedProgress \`\`\`java render.resetEquippedProgress(); \`\`\` Resets the equipped animation. ### roundedRect \`\`\`java render.roundedRect(float startX, float startY, float endX, float endY, float radius, int color); \`\`\` Renders a rounded rectangle on the screen. ### text2d \`\`\`java render.text2d(String text, float x, float y, float scale, int color, boolean shadow); \`\`\` Renders text on the screen. ### text3d \`\`\`java render.text3d(String text, Vec3 position, float scale, boolean shadow, boolean depth, int color); \`\`\` Renders text in the world. ### tracer \`\`\`java render.tracer(Entity en, float lineWidth, int color, float partialTicks); \`\`\` Renders a tracer line to a specified entity. ### worldToScreen \`\`\`java Vec3 screen = render.worldToScreen(double x, double y, double z, int scaleFactor, float partialTicks); \`\`\` Returns the screen coordinates and screen depth.
propertydescriptiontype
xx axisdouble
yy axisdouble
zdepthdouble
--- # Agent Instructions This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com. ## Querying This Documentation If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question. Perform an HTTP GET request on the current page URL with the \`ask\` query parameter: \`\`\` GET https://blowsy.gitbook.io/raven-b4/documentation/render.md?ask= \`\`\` The question should be specific, self-contained, and written in natural language. The response will contain a direct answer to the question and relevant excerpts and sources from the documentation. Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections. --- # Unknown \> For the complete documentation index, see \[llms.txt\](https://blowsy.gitbook.io/raven-b4/llms.txt). Markdown versions of documentation pages are available by appending \`.md\` to page URLs; this page is available as \[Markdown\](https://blowsy.gitbook.io/raven-b4/documentation/inventory.md). # inventory ### click \`\`\`java inventory.click(int slot, int button, int mode); \`\`\` Clicks a slot in the inventory. ### getBookContents \`\`\`java List pages = inventory.getBookContents(); \`\`\` Returns a list of pages in a json format. ### getChest \`\`\`java String chestName = inventory.getChest(); \`\`\` Gets the current chest name. ### getChestSize \`\`\`java int chestSize = inventory.getChestSize(); \`\`\` Gets the current chest's size. ### getContainer \`\`\`java String container = inventory.getContainer(); \`\`\` Gets the current container name. ### getSize \`\`\`java int size = inventory.getSize(); \`\`\` Gets the current inventory's size. ### getSlot \`\`\`java int slot = inventory.getSlot(); \`\`\` Returns the current slot. ### getStackInChestSlot \`\`\`java ItemStack item = inventory.getStackInChestSlot(int slot); \`\`\` Gets the item in a specified chest slot. ### getStackInSlot \`\`\`java ItemStack item = inventory.getStackInSlot(int slot); \`\`\` Gets the item in a specified slot. ### open \`\`\`java inventory.open(); \`\`\` Opens your inventory menu. ### setSlot \`\`\`java inventory.setSlot(int slot); \`\`\` Sets your slot. --- # Agent Instructions This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com. ## Querying This Documentation If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question. Perform an HTTP GET request on the current page URL with the \`ask\` query parameter: \`\`\` GET https://blowsy.gitbook.io/raven-b4/documentation/inventory.md?ask= \`\`\` The question should be specific, self-contained, and written in natural language. The response will contain a direct answer to the question and relevant excerpts and sources from the documentation. Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections. ---