Started thinking about the implemtation of #11
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user