Added Animations
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
|
||||
package net.jitse.npclib.internal;
|
||||
|
||||
import net.jitse.npclib.api.state.NPCAnimation;
|
||||
import net.jitse.npclib.api.state.NPCSlot;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
@@ -22,6 +23,8 @@ interface NPCPacketHandler {
|
||||
|
||||
void sendEquipmentPacket(Player player, NPCSlot slot, boolean auto);
|
||||
|
||||
void sendAnimationPacket(Player player, NPCAnimation animation);
|
||||
|
||||
default void sendEquipmentPackets(Player player) {
|
||||
for (NPCSlot slot : NPCSlot.values())
|
||||
sendEquipmentPacket(player, slot, true);
|
||||
|
||||
Reference in New Issue
Block a user