Commits

Shane Bee authored and md_5 committed ccb9614e950
#548: LivingEntity - add methods for getting/setting invisibility
No tags

src/main/java/org/bukkit/entity/LivingEntity.java

Modified
584 584 /**
585 585 * Get the category to which this entity belongs.
586 586 *
587 587 * Categories may subject this entity to additional effects, benefits or
588 588 * debuffs.
589 589 *
590 590 * @return the entity category
591 591 */
592 592 @NotNull
593 593 public EntityCategory getCategory();
594 +
595 + /**
596 + * Sets whether the entity is invisible or not.
597 + *
598 + * @param invisible If the entity is invisible
599 + */
600 + public void setInvisible(boolean invisible);
601 +
602 + /**
603 + * Gets whether the entity is invisible or not.
604 + *
605 + * @return Whether the entity is invisible
606 + */
607 + public boolean isInvisible();
594 608 }

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut