Package devs.beer.nativepackets.api
Interface FastPacketBatch
public interface FastPacketBatch
Connection-scoped primitive writes available inside one fast batch callback.
-
Method Summary
Modifier and TypeMethodDescriptionvoidarmorStandPose(int entityId, EntityMetadataField<MetadataRotation> pose, float x, float y, float z) Writes one ArmorStand body-part pose.voiddisplayRotation(int entityId, EntityMetadataField<NativeValue> rotation, float x, float y, float z, float w) Writes one Display quaternion rotation.voiddisplayScale(int entityId, float x, float y, float z) Writes one Display scale vector.voiddisplayScaleAndRotation(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.voiddisplayTranslation(int entityId, float x, float y, float z) Writes one Display translation vector.voiddisplayTranslationAndRotation(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.voiddisplayTranslationAndScale(int entityId, float translationX, float translationY, float translationZ, float scaleX, float scaleY, float scaleZ) Writes Display translation and scale together in one metadata packet.voiddisplayTranslationAndScaleAndRotation(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.voidentityHeadRotation(int entityId, float yaw) Writes one clientbound entity head rotation.voidentityRotation(int entityId, float yaw, float pitch, boolean onGround) Writes one clientbound entity body rotation.voidentityTeleport(int entityId, double x, double y, double z, float yaw, float pitch, boolean onGround) Writes one absolute clientbound entity teleport.
-
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. -
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.
-