Package org.bukkit.event.entity
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.
이벤트 처리가 끝난 후 적용될 엔티티에 대한 무적 시간 계산 메커니즘을 구현합니다.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionint
newNoDamageTick
(LivingEntity entity, @NotNull DamageSource source, int currentTick) 엔티티 무적 시간을 수정합니다.
-
Field Details
-
DEFAULT
기본 메커니즘DamageSource.getFixedNoDamageTick()
의 무적 시간을 먼저 확인합니다.
-
-
Method Details
-
newNoDamageTick
int newNoDamageTick(@NotNull LivingEntity entity, @NotNull @NotNull DamageSource source, int currentTick) 엔티티 무적 시간을 수정합니다.- Parameters:
entity
- 적용 엔티티source
- 대미지 소스 인스턴스currentTick
- 적용될 무적 시간- Returns:
- 새로운 무적 시간
-