Class LivingEvent.LivingVisibilityEvent

java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.entity.EntityEvent
net.neoforged.neoforge.event.entity.living.LivingEvent
net.neoforged.neoforge.event.entity.living.LivingEvent.LivingVisibilityEvent
Enclosing class:
LivingEvent

public static class LivingEvent.LivingVisibilityEvent extends LivingEvent
  • Field Details

    • visibilityModifier

      private double visibilityModifier
    • lookingEntity

      @Nullable private final @Nullable Entity lookingEntity
  • Constructor Details

    • LivingVisibilityEvent

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

    • 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 @Nullable Entity getLookingEntity()
      Returns:
      The entity trying to see this LivingEntity, if available