-
-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
30d3fad
commit df814cc
Showing
9 changed files
with
150 additions
and
20 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
src/main/java/world/bentobox/bentobox/api/hooks/NPCHook.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package world.bentobox.bentobox.api.hooks; | ||
|
||
import java.util.List; | ||
import java.util.Map; | ||
|
||
import org.bukkit.Chunk; | ||
import org.bukkit.Location; | ||
import org.bukkit.Material; | ||
import org.bukkit.World; | ||
import org.bukkit.configuration.InvalidConfigurationException; | ||
import org.bukkit.util.Vector; | ||
import org.eclipse.jdt.annotation.NonNull; | ||
import org.eclipse.jdt.annotation.Nullable; | ||
|
||
import de.oliver.fancynpcs.api.Npc; | ||
import lol.pyr.znpcsplus.api.npc.NpcEntry; | ||
import world.bentobox.bentobox.blueprints.dataobjects.BlueprintEntity; | ||
|
||
/** | ||
* NPC Hooks | ||
* @author tastybento | ||
* @since 3.2.0 | ||
*/ | ||
public abstract class NPCHook extends Hook { | ||
|
||
protected NPCHook(@NonNull String pluginName, @NonNull Material icon) { | ||
super(pluginName, icon); | ||
} | ||
|
||
public abstract boolean spawnNpc(String yaml, Location pos) throws InvalidConfigurationException; | ||
|
||
public abstract Map<? extends Vector, ? extends List<BlueprintEntity>> getNpcsInArea(World world, | ||
List<Vector> vectorsToCopy, @Nullable Vector origin); | ||
|
||
/** | ||
* Remove all NPCs in chunk | ||
* @param chunk chunk | ||
*/ | ||
public abstract void removeNPCsInChunk(Chunk chunk); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters