.
This commit is contained in:
@@ -9,10 +9,6 @@ import org.bukkit.entity.Player;
|
||||
|
||||
public class PacketUtils {
|
||||
|
||||
public enum EntityStatus {
|
||||
FIRE, CROUCHED, UNUSED1, UNUSED2, SPRINTING, INVISIBLE, GLOWING, ELYTRA
|
||||
}
|
||||
|
||||
public static void sendPacketEntityStatus(Entity entity, EntityStatus status, Player... players) {
|
||||
PacketContainer packet = ProtocolLibrary.getProtocolManager().createPacket(PacketType.Play.Server.ENTITY_METADATA);
|
||||
packet.getIntegers().write(0, entity.getEntityId());
|
||||
@@ -72,4 +68,8 @@ public class PacketUtils {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
public enum EntityStatus {
|
||||
FIRE, CROUCHED, UNUSED1, UNUSED2, SPRINTING, INVISIBLE, GLOWING, ELYTRA
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user