Interface EntityDamageEvent.NoDamageTickModifier

Enclosing class:
EntityDamageEvent
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface EntityDamageEvent.NoDamageTickModifier
이벤트 처리가 끝난 후 적용될 엔티티에 대한 무적 시간 계산 메커니즘을 구현합니다.
  • Field Details

  • Method Details

    • newNoDamageTick

      int newNoDamageTick(@NotNull LivingEntity entity, @NotNull @NotNull DamageSource source, int currentTick)
      엔티티 무적 시간을 수정합니다.
      Parameters:
      entity - 적용 엔티티
      source - 대미지 소스 인스턴스
      currentTick - 적용될 무적 시간
      Returns:
      새로운 무적 시간