For v1.1.3.
Some files will not be used in this release. These will become active in v1.2.
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
/*
|
||||
* Copyright (c) 2018 Jitse Boonstra
|
||||
*/
|
||||
|
||||
package net.jitse.npclib.api;
|
||||
|
||||
/**
|
||||
* @author Jitse Boonstra
|
||||
*/
|
||||
public interface ActionHandler {
|
||||
|
||||
// void toggleSleep(Supplier<Set<Player>> visible);
|
||||
//
|
||||
// void toggleShift(Supplier<Set<Player>> visible);
|
||||
//
|
||||
// void toggleWatching(Player player, Supplier<Set<Player>> visible);
|
||||
}
|
||||
@@ -22,7 +22,7 @@ import java.util.*;
|
||||
/**
|
||||
* @author Jitse Boonstra
|
||||
*/
|
||||
public abstract class NPC implements PacketHandler {
|
||||
public abstract class NPC implements PacketHandler, ActionHandler {
|
||||
|
||||
protected final UUID uuid = UUID.randomUUID();
|
||||
protected final String name = uuid.toString().replace("-", "").substring(0, 10);
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* Copyright (c) 2018 Jitse Boonstra
|
||||
*/
|
||||
|
||||
package net.jitse.npclib.api.packet;
|
||||
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
/**
|
||||
* @author Jitse Boonstra
|
||||
*/
|
||||
public abstract class NPCPacket {
|
||||
|
||||
private Object packet;
|
||||
|
||||
public void send(Player player) {
|
||||
|
||||
}
|
||||
|
||||
public abstract void create();
|
||||
}
|
||||
Reference in New Issue
Block a user