Added more functions to IPlayer, IEntityLiving, IEntityLivingBase, and IAnimal.

This commit is contained in:
Luis C.M committed 2022-12-26 01:13:27 -06:00
1 parent f481602612
commit 3546dfc3be
4 files changed
+20 -1

No files matched your search

+4
View File
@@ -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);
+4
View File
@@ -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();
}