Skip to content

Getting Started

iso2013 edited this page Apr 25, 2018 · 6 revisions

Using Maven

Repository:

<repository>
    <id>peapi-mvn-repo</id>
    <url>https://raw.github.com/iso2013/PacketEntityAPI/mvn-repo/</url>
    <snapshots>
        <enabled>true</enabled>
        <updatePolicy>always</updatePolicy>
    </snapshots>
</repository>

Dependency (API):

<dependency>
    <groupId>net.blitzcube.peapi</groupId>
    <artifactId>API</artifactId>
    <version>PUT VERSION HERE</version>
</dependency>

Dependency (Plugin) - for shading only:

<dependency>
    <groupId>net.blitzcube.peapi</groupId>
    <artifactId>Plugin</artifactId>
    <version>PUT VERSION HERE</version>
</dependency>

Shading information (important):

You must change the location of the net.blitzcube.peapi classes, but not the net.blitzcube.peapi.api package!

Using Gradle

Dependency (API):

compile "net.blitzcube.peapi:API:PUT VERSION HERE"

Dependency (Plugin) - for shading only:

compile "net.blitzcube.peapi:Plugin:PUT VERSION HERE"

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