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.
(EntityPlayer player)
| 2241 | * For EntityLivingBase subclasses, returning false when invisible will render the entity semitransparent. |
| 2242 | */ |
| 2243 | public boolean isInvisibleToPlayer(EntityPlayer player) |
| 2244 | { |
| 2245 | return player.isSpectator() ? false : this.isInvisible(); |
| 2246 | } |
| 2247 | |
| 2248 | public void setInvisible(boolean invisible) |
| 2249 | { |
no test coverage detected