Class LivingEvent.LivingVisibilityEvent

    • Field Detail

      • visibilityModifier

        private double visibilityModifier
      • lookingEntity

        @Nullable
        private final Entity lookingEntity
    • Constructor Detail

      • LivingVisibilityEvent

        public LivingVisibilityEvent​(LivingEntity livingEntity,
                                     @Nullable
                                     Entity lookingEntity,
                                     double originalMultiplier)
    • Method Detail

      • modifyVisibility

        public void modifyVisibility​(double mod)
        Parameters:
        mod - Is multiplied with the current modifier
      • getVisibilityModifier

        public double getVisibilityModifier()
        Returns:
        The current modifier
      • getLookingEntity

        @Nullable
        public Entity getLookingEntity()
        Returns:
        The entity trying to see this LivingEntity, if available