📃
Scripting
  • Introduction
  • Creating a script
  • Dummy API
  • Namespaces
    • breeze
    • mc
    • inventory
    • mathUtil
    • playerController
    • UIRenderer
    • world
    • render3D
    • gameSettings
  • Objects
    • Breeze
      • Settings
        • BooleanSetting
        • IntSetting
        • DoubleSetting
        • ModeSetting
        • ColorSetting
        • MinMaxSetting
        • StringSetting
        • KeyBindSetting
        • PositionSetting
      • Animation
      • Module
        • HudModule
        • RotationModule
    • Minecraft
      • Packets
        • ClientPacket
          • C00PacketKeepAlive
          • C01PacketChatMessage
          • C02PacketUseEntity
          • C03PacketPlayer
            • C04PacketPlayerPosition
            • C05PacketPlayerLook
            • C06PacketPlayerPosLook
          • C07PacketPlayerDigging
          • C08PacketBlockPlacement
          • C09PacketHeldItemChange
          • C0APacketAnimation
          • C0BPacketEntityAction
          • C0CPacketInput
          • C0DPacketCloseWindow
          • C0EPacketClickWindow
          • C0FPacketConfirmTransaction
          • C17PacketCustomPayload
        • ServerPacket
          • S00PacketKeepAlive
          • S01PacketJoinGame
          • S02PacketChat
          • S03PacketTimeUpdate
          • S04PacketEntityEquipment
          • S05PacketSpawnPosition
          • S06PacketUpdateHealth
          • S07PacketRespawn
          • S08PacketPlayerPosLook
          • S09PacketHeldItemChange
          • S0CPacketSpawnPlayer
          • S0DPacketCollectItem
          • S0EPacketSpawnObject
          • S0FPacketSpawnMob
          • S12PacketEntityVelocity
          • S13PacketDestroyEntities
          • S14PacketEntity
            • S15PacketEntityRelMove
            • S16PacketEntityLook
            • S17PacketEntityLookMove
          • S18PacketEntityTeleport
          • S19PacketEntityHeadLook
          • S19PacketEntityStatus
          • S27PacketExplosion
          • S2APacketParticles
          • S2CPacketSpawnGlobalEntity
          • S2DPacketOpenWindow
          • S2EPacketCloseWindow
          • S2FPacketSetSlot
          • S3FPacketCustomPayload
      • Util
        • Vec3
        • AxisAlingenedBB
        • RaytraceResult
        • ItemStack
        • BlockPos
      • Entity
        • LivingEntity
          • EntityPlayerSP
    • Util
      • Timer
      • KeyBind
      • Color
      • Rotation
  • Events
    • Packet send event
    • Packet receive event
    • Pre motion event
    • Motion event
    • Post motion event
    • Input event
    • Render2D event
    • Render3D event
    • Tick event
    • Render Entity event
    • World change event
    • Join server event
  • Examples
    • AntiAim
    • CPS Counter
    • Chat Spammer
    • Blink
    • Auto Sprint
  • EnumFacing
Powered by GitBook
On this page
  • calcRotation(Vec3 from, Vec3 to): float[]
  • interpolateVector(Vec3 from, Vec3 to, float partialTicks): Vec3
  • interpolateEntity(Entity entity, float partialTicks): Vec3
  • interpolateBoundingBox(Entity entity, float partialTicks): AxisAlignedBB
  • lerp(float start, float end, float progress): float
  • lerpColor(Color start, Color end, float progress): Color
  • directionSpeed(float forward, float strafe, float yaw, float speed): double[]
  1. Namespaces

mathUtil

Last updated 1 year ago

calcRotation( from, to): float[]

Calculates the rotation (yaw and pitch) needed to aim from one vector position to another. from and to are Vec3 objects representing the start and end positions, respectively. Returns a float array containing the yaw and pitch values.

interpolateVector( from, to, float partialTicks):

Interpolates between two vector positions over time. from and to are Vec3 objects representing the start and end positions, while partialTicks is a float value representing the fraction of time between the two positions. Returns the interpolated Vec3 position.

interpolateEntity( entity, float partialTicks): Vec3

Calculates the interpolated position of an entity based on its last and current positions. entity is an Entity object representing the entity, and partialTicks is a float value for the interpolation factor. Returns the interpolated Vec3 position of the entity.

interpolateBoundingBox( entity, float partialTicks):

Returns the interpolated bounding box of an entity. entity is an Entity object representing the entity, and partialTicks is a float value for the interpolation factor. This method calculates the interpolated position of the entity's bounding box and returns it as an AxisAlignedBB.

lerp(float start, float end, float progress): float

Linearly interpolates between two float values. start and end are the initial and final values, respectively, while progress represents the interpolation factor. Returns the interpolated float value.

lerpColor( start, end, float progress):

Interpolates between two colors. start and end are Color objects representing the initial and final colors,

directionSpeed(float forward, float strafe, float yaw, float speed): double[]

Calculates the movement with the forward, strafe, yaw and speed. Returns a array with the x motion and the y motion.

Vec3
Vec3
Vec3
Vec3
Vec3
Entity
Entity
AxisAlignedBB
Color
Color
Color