LexManos

Forge IOwnableEntity

Feb 10th, 2012
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.53 KB | None | 0 0
  1. package net.minecraft.src.forge;
  2.  
  3. import net.minecraft.src.Entity;
  4.  
  5. /**
  6.  * This interface should be implemented by an Entity that can have a 'Owner'
  7.  * This was created to mimic ModLoaderMP's functionality. *
  8.  */
  9. public interface IOwnableEntity
  10. {
  11.     /**
  12.      * Gets the current owner of the entity;
  13.      * @return The owner instance, Null if none.
  14.      */
  15.     public Entity getOwner();
  16.    
  17.     /**
  18.      * Sets the owner of the entity.
  19.      * @param entity The owner
  20.      */
  21.     public void setOwner(Entity entity);
  22. }
Advertisement
Add Comment
Please, Sign In to add comment