Started thinking about the implemtation of #11

This commit is contained in:
Jitse Boonstra
2019-10-21 09:49:23 +02:00
parent 6d5895870b
commit 4d2140d24c
24 changed files with 377 additions and 254 deletions
@@ -0,0 +1,29 @@
/*
* Copyright (c) 2018 Jitse Boonstra
*/
package net.jitse.npclib.internal;
import net.jitse.npclib.api.state.NPCSlot;
import org.bukkit.entity.Player;
/**
* @author Jitse Boonstra
*/
interface NPCPacketHandler {
void createPackets();
void sendShowPackets(Player player);
void sendHidePackets(Player player);
void sendMetadataPacket(Player player);
void sendEquipmentPacket(Player player, NPCSlot slot, boolean auto);
default void sendEquipmentPackets(Player player) {
for (NPCSlot slot : NPCSlot.values())
sendEquipmentPacket(player, slot, true);
}
}