MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / isInvisibleToPlayer

Method isInvisibleToPlayer

src/main/java/net/minecraft/entity/Entity.java:2243–2246  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 {

Callers 2

renderModelMethod · 0.45
canRenderNameMethod · 0.45

Calls 2

isInvisibleMethod · 0.95
isSpectatorMethod · 0.45

Tested by

no test coverage detected