엔티티 이벤트

홍성재·2024년 3월 10일

Minecraft

목록 보기
8/13

이벤트 목록으로 돌아가기

엔티티 상호작용 관련

EntityAirChangeEvent

  • 엔티티의 공기(호흡) 변경시 발생

이벤트 인자

  • Entity what
    • 엔티티
  • int amount
    • 변화된 공기량

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • int getAmount()
  • void setAmount(int amount)

EntityBreakDoorEvent

  • 엔티티가 문을 부술시 발생

이벤트 인자

  • LivingEntity entity
    • 문을 부순 엔티티
  • Block targetBlock
    • 문 블럭

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • Block getBlock()
  • BlockData getBlockData()
  • Material getTo()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

EntityBreedEvent

  • 엔티티가 교배 성공시 발생

이벤트 인자

  • LivingEntity child
    • 자식
  • LivingEntity mother
    • 엄마
  • LivingEntity father
    • 아빠
  • LivingEntity breeder @Nullable
    • 번식자
  • ItemStack bredWith @Nullable
    • 번식 재료
  • int experience
    • 경험치

함수

  • EntityType getEntityType()
  • LivingEntity getEntity() : 자식 엔티티
  • LivingEntity getMother()
  • LivingEntity getFather()
  • LivingEntity getBreeder()
  • ItemStack getBredWith()
  • int getExperience()
  • void setExperience(int experience)
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

EntityChangeBlockEvent

  • 엔티티가 블럭 변경시 발생

이벤트 인자

  • Entity what
    • 블럭을 변경한 엔티티
  • Block block
    • 변경중인 블럭
  • BlockData to
    • 변경된 블럭 데이터

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • Block getBlock()
  • BlockData getBlockData()
  • Material getTo()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

엔티티 공통 관련

EntityCombustEvent

  • 엔티티가 불타는 경우 발생

이벤트 인자

  • Entity combustee
    • 불 탈 엔티티
  • int duration
    • 불타는 시간

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • int getDuration()
  • void setDuration(int duration)
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

EntityCombustByBlockEvent

  • 엔티티가 블럭에 의해 불타는 경우 발생

이벤트 인자

  • Block combuster
    • 불 태우는 블럭
  • Entity combustee
    • 불 탈 엔티티
  • int duration
    • 불타는 시간

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • int getDuration()
  • void setDuration(int duration)
  • Block getCombuster()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

EntityCombustByEntityEvent

  • 엔티티가 엔티티에 의해 불타는 경우 발생

이벤트 인자

  • Entity combuster
    • 불 태우는 엔티티
  • Entity combustee
    • 불 탈 엔티티
  • int duration
    • 불타는 시간

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • int getDuration()
  • void setDuration(int duration)
  • Entity getCombuster()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

EntityDamageEvent

  • 엔티티가 피해를 입는 경우 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

EntityDamageByBlockEvent

  • 엔티티가 블럭에 의해 피해를 입는 경우 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

EntityDamageByEntityEvent

  • 엔티티가 엔티티에 의해 피해를 입는 경우 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

EntityDeathEvent

  • 엔티티가 사망하면 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

EntityDropItemEvent

  • 엔티티가 아이템을 떨어뜨리면 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

EntityEnterBlockEvent

  • 좀벌레, 벌 등의 엔티티가 블럭에 들어가면 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

EntityEnterLoveModeEvent

  • 엔티티가 사랑 모드에 들어가면 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

EntityKnockbackEvent

  • 엔티티가 넉백을 받을 시 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

EntityKnockbackByEntityEvent

  • 엔티티가 다른 엔티티에게 넉백을 받으면 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

EntityInteractEvent

  • 엔티티가 상호작용시 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

EntityPickupItemEvent

  • 엔티티가 아이템을 주으면 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

EntityPortalEvent

  • 플레이어가 아닌 엔티티가 포탈에 접근하여 텔레포트하는 경우 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

EntityPortalEnterEvent

  • 엔티티가 포탈에 접근하는 경우 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

EntityPortalExitEvent

  • 엔티티가 포탈을 나가기 직전에 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

EntityPoseChangeEvent

  • 엔티티가 포즈를 바꾸면 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

EntityPotionEffectEvent

  • 엔티티의 포션 효과가 바뀌면 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

EntityRegainHealthEvent

  • 엔티티가 체력을 회복하면 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

EntityRemoveEvent

  • 엔티티가 제거되면 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

EntityResurrectEvent

  • 엔티티가 죽어서 부활기회가 있을 때 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

EntityTargetEvent

  • 엔티티가 타겟을 바꾸거나 타겟이 없어지면 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

EntityTargetLivingEntityEvent

  • 엔티티가 리빙 엔티티를 타겟으로 삼으면 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

EntityTeleportEvent

  • 플레이어가 아닌 엔티티가 텔레포트시 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

EntityUnleashEvent

  • 엔티티가 끈에서 풀려나면 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

ArrowBodyCountChangeEvent

  • 몸에 박힌 화살의 개수가 변하면 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

비생물 엔티티 관련

LingeringPotionSplashEvent

  • 잔류형 포션이 터지면 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

AreaEffectCloudApplyEvent

  • 잔류형 포션에 영향을 받으면 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

FireworkExplodeEvent

  • 폭죽이 터지면 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

PotionSplashEvent

  • 투척용 포션이 부딪히면 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

ProjectileHitEvent

  • 투사체가 부딪히면 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

ProjectileLaunchEvent

  • 투사체가 발사되면 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

생물 엔티티 관련

CreeperPowerEvent

  • 크리퍼가 충전시 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

EntityShootBowEvent

  • 엔티티가 활을 발사하면 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

EntityExplodeEvent

  • 엔티티가 폭발하는 경우 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

ExplosionPrimeEvent

  • 엔티티가 폭발하기로 결정되면 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

BatToggleSleepEvent

  • 박쥐가 잠들면 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

EnderDragonChangePhaseEvent

  • 엔더드래곤의 페이즈 변경시 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

EntitySpellCastEvent

  • 소환사가 스펠을 시전하면 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

EntityTameEvent

  • 엔티티가 테이밍되면 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

HorseJumpEvent

  • 말이 점프하면 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

PiglinBarterEvent

  • 피글린 물물교환시 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

PigZombieAngerEvent

  • 돼지 좀비가 화가 나면 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

SheepDyeWoolEvent

  • 양의 털색깔이 변경되면 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

SheepRegrowWoolEvent

  • 양털이 다시 자라면 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

SlimeSplitEvent

  • 슬라임 분할 이벤트

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

StriderTemperatureChangeEvent

  • 스트라이더가 온도로 바뀌면 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

VillagerAcquireTradeEvent

  • 주민이 새로운 거래를 얻을 때 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

VillagerCareerChangeEvent

  • 주민의 직업이 바뀔 때 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

VillagerReplenishTradeEvent

  • 주민의 물건이 재입고 될 때 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

생성 관련

EntityPlaceEvent

  • 갑옷 거치대, 배, 카트, 엔드 수정 등의 엔티티가 설치에 의해 생성시 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

EntitySpawnEvent

  • 엔티티가 생기면 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

CreatureSpawnEvent

  • 생물 생성시 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

EntityTransformEvent

  • 피그맨, 호글린, 스케렐톤, 좀비, 주민 등이 다른 엔티티로 대체(변형)될 때 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

ExpBottleEvent

  • 던져진 경험치병이 부딪혀 경험치 구슬이 생길 때 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

아이템 관련

ItemDespawnEvent

  • 아이템이 사라질 때 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

ItemMergeEvent

  • 아이템이 겹쳐서 합쳐질 때 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

ItemSpawnEvent

  • 아이템이 소환되면 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

PigZapEvent

  • 돼지가 번개를 맞아 피글린이 되면 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

SpawnerSpawnEvent

  • 스포너에 의해 엔티티가 소환되면 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

행잉 엔티티 관련

HangingBreakEvent

  • 행잉 엔티티가 파괴되면 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

HangingBreakByEntityEvent

  • 엔티티에 의해 행잉 엔티티가 파괴되면 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

HangingPlaceEvent

  • 행잉 엔티티가 설치되면 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

탈것 이벤트

EntityMountEvent

  • 엔티티가 다른 엔티티에 탑승을 시도하면 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

EntityDismountEvent

  • 엔티티가 탈것을 타는 것을 멈추면 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

VehicleEvent

  • 탈것과 관련된 사건이 생기면 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

VehicleCreateEvent

  • 탈것이 생성되면 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

VehicleDamageEvent

  • 탈것이 피해를 입으면 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

VehicleDestroyEvent

  • 탈것이 파괴되면 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

VehicleEnterEvent

  • 엔티티가 탈것에 탑승하면 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

VehicleExitEvent

  • 엔티티가 탈것에서 내리면 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

VehicleMoveEvent

  • 탈것이 움직이면 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

VehicleUpdateEvent

  • 탈것이 업데이트되면 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

VehicleCollisionEvent

  • 탈것이 충돌시 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

VehicleBlockCollisionEvent

  • 탈것이 블럭과 충돌시 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)

VehicleEntityCollisionEvent

  • 탈것이 엔티티와 충돌시 발생

이벤트 인자

함수

  • EntityType getEntityType()
  • LivingEntity getEntity()
  • boolean isCancelled()
  • void setCancelled(boolean cancel)
profile
신입 개발자

0개의 댓글