/**
* Only used by renderer in EntityLivingBase subclasses.
* Determines if an entity is visible or not to a specfic player, if the entity is normally invisible.
* For EntityLivingBase subclasses, returning false when invisible will render the entity semitransparent.
*/
public boolean isInvisibleToPlayer(EntityPlayer player)
{
if (player.isSpectator())
{
return false;
}
else
{
Team team = this.getTeam();
return team != null && player != null && player.getTeam() == team && team.getSeeFriendlyInvisiblesEnabled() ? false : this.isInvisible();
}
}
Entity.java 文件源码
java
阅读 27
收藏 0
点赞 0
评论 0
项目:Backmemed
作者:
评论列表
文章目录