mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-15 09:04:44 +00:00
Added more functions to IPlayer, IEntityLiving, IEntityLivingBase, and IAnimal.
This commit is contained in:
1 parent
f481602612
commit
3546dfc3be
4 files changed
+20
-1
No files matched your search
@@ -20,6 +20,10 @@ public interface IAnimal<T extends EntityAnimal> extends IEntityLiving<T> {
|
||||
*/
|
||||
boolean interact(IPlayer player);
|
||||
|
||||
void setFollowPlayer(IPlayer player);
|
||||
|
||||
IPlayer followingPlayer();
|
||||
|
||||
boolean isInLove();
|
||||
|
||||
void resetInLove();
|
||||
|
||||
@@ -51,4 +51,6 @@ public interface IEntityLiving<T extends EntityLiving> extends IEntityLivingBase
|
||||
IEntity getLeashedTo();
|
||||
|
||||
void setLeashedTo(IEntity entity, boolean sendPacket);
|
||||
|
||||
boolean canBeSteered();
|
||||
}
|
||||
@@ -1,7 +1,6 @@
|
||||
package noppes.npcs.api.entity;
|
||||
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.SharedMonsterAttributes;
|
||||
import noppes.npcs.api.IBlock;
|
||||
import noppes.npcs.api.IDamageSource;
|
||||
import noppes.npcs.api.IPos;
|
||||
@@ -62,6 +61,16 @@ public interface IEntityLivingBase<T extends EntityLivingBase> extends IEntity<T
|
||||
*/
|
||||
IEntityLivingBase getAttackTarget();
|
||||
|
||||
int getAttackTargetTime();
|
||||
|
||||
void setLastAttacker(IEntity p_130011_1_);
|
||||
|
||||
IEntity getLastAttacker();
|
||||
|
||||
int getLastAttackerTime();
|
||||
|
||||
boolean canBreatheUnderwater();
|
||||
|
||||
int getType();
|
||||
|
||||
boolean typeOf(int type);
|
||||
|
||||
@@ -306,4 +306,8 @@ public interface IPlayer<T extends EntityPlayerMP> extends IEntityLivingBase<T>
|
||||
void closeOverlay(int id);
|
||||
|
||||
IOverlayHandler getOverlays();
|
||||
|
||||
void setConqueredEnd(boolean conqueredEnd);
|
||||
|
||||
boolean conqueredEnd();
|
||||
}
|
||||
Reference in new issue
Block a user