Class PlayerEvent.Visibility

Enclosing class:
PlayerEvent

@Deprecated public static class PlayerEvent.Visibility extends PlayerEvent
Deprecated.
TODO 1.17 remove, unused Fired when the world checks if a player is near enough to be attacked by an entity. The resulting visibility modifier is multiplied by the one calculated by Minecraft (based on sneaking and more) and used to calculate the radius a player has to be in (targetDistance*modifier). This can also be used to increase the visibility of a player, if it was decreased by Minecraft or other mods. But the resulting value cannot be higher than the standard target distance.
  • Field Details

    • visibilityModifier

      private double visibilityModifier
      Deprecated.
  • Constructor Details

    • Visibility

      public Visibility(PlayerEntity player)
      Deprecated.
  • Method Details

    • modifyVisibility

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

      public double getVisibilityModifier()
      Deprecated.
      Returns:
      The current modifier