Interface FastPacketBatch


public interface FastPacketBatch
Connection-scoped primitive writes available inside one fast batch callback.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    armorStandPose(int entityId, EntityMetadataField<MetadataRotation> pose, float x, float y, float z)
    Writes one ArmorStand body-part pose.
    void
    displayRotation(int entityId, EntityMetadataField<NativeValue> rotation, float x, float y, float z, float w)
    Writes one Display quaternion rotation.
    void
    displayScale(int entityId, float x, float y, float z)
    Writes one Display scale vector.
    void
    displayScaleAndRotation(int entityId, float scaleX, float scaleY, float scaleZ, EntityMetadataField<NativeValue> rotation, float rotationX, float rotationY, float rotationZ, float rotationW)
    Writes Display scale and one left/right rotation in one metadata packet.
    void
    displayTranslation(int entityId, float x, float y, float z)
    Writes one Display translation vector.
    void
    displayTranslationAndRotation(int entityId, float translationX, float translationY, float translationZ, EntityMetadataField<NativeValue> rotation, float rotationX, float rotationY, float rotationZ, float rotationW)
    Writes Display translation and one left/right rotation in one metadata packet.
    void
    displayTranslationAndScale(int entityId, float translationX, float translationY, float translationZ, float scaleX, float scaleY, float scaleZ)
    Writes Display translation and scale together in one metadata packet.
    void
    displayTranslationAndScaleAndRotation(int entityId, float translationX, float translationY, float translationZ, float scaleX, float scaleY, float scaleZ, EntityMetadataField<NativeValue> rotation, float rotationX, float rotationY, float rotationZ, float rotationW)
    Writes Display translation, scale, and one left/right rotation in one metadata packet.
    void
    entityEquipment(int entityId, NativeEquipmentSlot slot, NativeItem item)
    Writes one equipment slot of a client-visible entity.
    void
    entityHeadRotation(int entityId, float yaw)
    Writes one clientbound entity head rotation.
    void
    entityRotation(int entityId, float yaw, float pitch, boolean onGround)
    Writes one clientbound entity body rotation.
    void
    entitySharedFlags(int entityId, byte flags)
    Writes the complete clientbound entity shared-flags byte.
    void
    entityTeleport(int entityId, double x, double y, double z, float yaw, float pitch, boolean onGround)
    Writes one absolute clientbound entity teleport.
    void
    itemDisplayItem(int entityId, NativeItem item)
    Writes the displayed item of one client-visible ItemDisplay.
  • Method Details

    • entityTeleport

      void entityTeleport(int entityId, double x, double y, double z, float yaw, float pitch, boolean onGround)
      Writes one absolute clientbound entity teleport.
    • entityRotation

      void entityRotation(int entityId, float yaw, float pitch, boolean onGround)
      Writes one clientbound entity body rotation.
    • entityHeadRotation

      void entityHeadRotation(int entityId, float yaw)
      Writes one clientbound entity head rotation.
    • entitySharedFlags

      void entitySharedFlags(int entityId, byte flags)
      Writes the complete clientbound entity shared-flags byte.
    • itemDisplayItem

      void itemDisplayItem(int entityId, NativeItem item)
      Writes the displayed item of one client-visible ItemDisplay.
    • entityEquipment

      void entityEquipment(int entityId, NativeEquipmentSlot slot, NativeItem item)
      Writes one equipment slot of a client-visible entity.
    • armorStandPose

      void armorStandPose(int entityId, EntityMetadataField<MetadataRotation> pose, float x, float y, float z)
      Writes one ArmorStand body-part pose.
    • displayTranslation

      void displayTranslation(int entityId, float x, float y, float z)
      Writes one Display translation vector.
    • displayScale

      void displayScale(int entityId, float x, float y, float z)
      Writes one Display scale vector.
    • displayRotation

      void displayRotation(int entityId, EntityMetadataField<NativeValue> rotation, float x, float y, float z, float w)
      Writes one Display quaternion rotation.
    • displayTranslationAndScale

      void displayTranslationAndScale(int entityId, float translationX, float translationY, float translationZ, float scaleX, float scaleY, float scaleZ)
      Writes Display translation and scale together in one metadata packet.
    • displayTranslationAndRotation

      void displayTranslationAndRotation(int entityId, float translationX, float translationY, float translationZ, EntityMetadataField<NativeValue> rotation, float rotationX, float rotationY, float rotationZ, float rotationW)
      Writes Display translation and one left/right rotation in one metadata packet.
    • displayScaleAndRotation

      void displayScaleAndRotation(int entityId, float scaleX, float scaleY, float scaleZ, EntityMetadataField<NativeValue> rotation, float rotationX, float rotationY, float rotationZ, float rotationW)
      Writes Display scale and one left/right rotation in one metadata packet.
    • displayTranslationAndScaleAndRotation

      void displayTranslationAndScaleAndRotation(int entityId, float translationX, float translationY, float translationZ, float scaleX, float scaleY, float scaleZ, EntityMetadataField<NativeValue> rotation, float rotationX, float rotationY, float rotationZ, float rotationW)
      Writes Display translation, scale, and one left/right rotation in one metadata packet.