Skip to content

Commit

Permalink
Add predefined creature types for all professions of villagers and zo…
Browse files Browse the repository at this point in the history
…mbies

including baby variants of each.
  • Loading branch information
totemo committed Mar 11, 2016
1 parent a00c079 commit 321b25b
Show file tree
Hide file tree
Showing 2 changed files with 249 additions and 143 deletions.
29 changes: 29 additions & 0 deletions src/io/github/totemo/doppelganger/IPredefinedCreature.java
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

0 comments on commit 321b25b

Please sign in to comment.