-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add predefined creature types for all professions of villagers and zo…
…mbies including baby variants of each.
- Loading branch information
Showing
2 changed files
with
249 additions
and
143 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
src/io/github/totemo/doppelganger/IPredefinedCreature.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,29 @@ | ||
package io.github.totemo.doppelganger; | ||
|
||
import org.bukkit.Location; | ||
import org.bukkit.entity.LivingEntity; | ||
|
||
// ---------------------------------------------------------------------------- | ||
/** | ||
* The interface implemented by all {@link PredefinedCreature}s | ||
*/ | ||
public interface IPredefinedCreature | ||
{ | ||
// -------------------------------------------------------------------------- | ||
/** | ||
* Return true if the specified LivingEntity is of this type. | ||
* | ||
* @param living the creature to examine. | ||
* @return true if it is this type of PredefinedCreature. | ||
*/ | ||
boolean isInstance(LivingEntity living); | ||
|
||
// -------------------------------------------------------------------------- | ||
/** | ||
* Spawn a creature of this type at the specified location. | ||
* | ||
* @param loc the Location. | ||
* @return the LivingEntity. | ||
*/ | ||
LivingEntity spawn(Location loc); | ||
} // class IPredefinedCreature |
Oops, something went wrong.