Skip to content
iso2013 edited this page Apr 25, 2018 · 2 revisions

Introduction

PacketEntityAPI is a simple, easy to use, and efficient library for the creation and modification of outbound or inbound packets related to entities. The documentation has been divided into a few categories:

To get started, see the Getting Started and Obtaining an API Instance pages.

Fake Entities

Articles under the fake entities heading are related to the creation of fake entities. For modification of fake entity metadata, see the modifiers section.

Hitboxes

PacketEntityAPI supports overriding custom hitboxes for fake entities. Currently, these have a few limitations:

  • When clicking outside of the bounds of the standard hitbox of the entity, only attacking will work.
  • If the custom hitbox is smaller than the original hitbox, then the uncovered area of the original hitbox will form a 'dead zone' where clicking does nothing.

Listeners

Packet listeners can specify a few engine settings related to the packet detection engine, including whether or not to fire events for fake entities or collisions with fake entities. These events contain getters and setters for easy modification of the packet. The documentation on this wiki explains how to register a listener - additional information about settings is available on the Javadocs.

Modifiers

The documentation for the modifier system explains how you should obtain modifier instances and how to use these instances to modify fake entities or metadata packets.

Packets

Contains information about how to create packets, send packets, and queue packets for sending after the event.

HomeJavadocs


Getting Started

Obtaining an API Instance


Fake Entities:

Hitboxes:

  • Creating Hitboxes
  • Setting a Hitbox
  • Hitbox Limitations

Listeners:

  • Registering a Listener

Modifiers:

  • Obtaining Modifiers
  • Modifying an Entity

Packets:

  • Creating Packets
  • Sending Packets
  • Queueing Packets

Clone this wiki locally