📃
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
  • getEntity():Entity
  • getX(): double
  • getY(): double
  • getZ(): double
  • getYaw(): double
  • getPitch(): double
  • getOnGround(): boolean
  1. Objects
  2. Minecraft
  3. Packets
  4. ServerPacket

S14PacketEntity

Last updated 9 months ago

This packet gets send to inform the client about the latest movement a entity made. The difference between this packet and is that this packet moves the entity relative to its already known server position and S18PacketEntityTeleport completely resets the entity to a new position.

getEntity():

Returns an Entity object representing the entity associated with this packet. This method provides access to the entity whose information is being updated.

The getX(), getZ() and getZ() are not giving the actual position of the entity, they are giving the change in their respective direction multiplied by 32.

getX(): double

How much the entity moved in the x direction multiplied by 32.

getY(): double

How much the entity moved in the y direction multiplied by 32.

getZ(): double

How much the entity moved in the z direction multiplied by 32.

getYaw(): double

Returns the new yaw (horizontal rotation) of the entity. We translated this for you so you don't have to calculate the change yourself.

getPitch(): double

Returns the new pitch (vertical rotation) of the entity. We translated this for you so you don't have to calculate the change yourself.

getOnGround(): boolean

Determines whether the entity is on the ground, based on the information in this packet. Returns true if the entity is on the ground, false otherwise.

S18PacketEntityTeleport
Entity