Class SendEntityEquipmentEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
moe.caramel.daydream.event.packet.SendPacketEvent
moe.caramel.daydream.event.packet.SendEntityEquipmentEvent
- All Implemented Interfaces:
Cancellable
@NullMarked
public final class SendEntityEquipmentEvent
extends SendPacketEvent
implements Cancellable
서버가 클라이언트에게
PacketType.Server.ENTITY_EQUIPMENT
패킷을 전송할 때 호출됩니다.-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Field Summary
Fields inherited from class org.bukkit.event.player.PlayerEvent
player
-
Constructor Summary
ConstructorDescriptionSendEntityEquipmentEvent
(Player player, Entity target, SendEntityEquipmentEvent.Reason reason, Map<EquipmentSlot, ItemStack> data) -
Method Summary
Modifier and TypeMethodDescriptiongetData()
전송 예정인 장비 목록을 반환하며, 목록을 수정할 수 있습니다.static HandlerList
이벤트 호출 사유를 가져옵니다.이 패킷의 대상 엔티티를 가져옵니다.boolean
Gets the cancellation state of this event.void
setCancelled
(boolean cancel) Sets the cancellation state of this event.Methods inherited from class moe.caramel.daydream.event.packet.SendPacketEvent
getPacketType
Methods inherited from class org.bukkit.event.player.PlayerEvent
getPlayer
Methods inherited from class org.bukkit.event.Event
callEvent, getEventContext, getEventName, isAsynchronous, isSupportInterrupt
-
Constructor Details
-
SendEntityEquipmentEvent
@Internal public SendEntityEquipmentEvent(Player player, Entity target, SendEntityEquipmentEvent.Reason reason, Map<EquipmentSlot, ItemStack> data)
-
-
Method Details
-
getTarget
이 패킷의 대상 엔티티를 가져옵니다.- Returns:
- 패킷의 대상 엔티티
-
getReason
이벤트 호출 사유를 가져옵니다.- Returns:
- 이벤트 호출 사유
-
getData
전송 예정인 장비 목록을 반환하며, 목록을 수정할 수 있습니다.- Returns:
- 장비 목록
-
isCancelled
public boolean isCancelled()Description copied from interface:Cancellable
Gets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins- Specified by:
isCancelled
in interfaceCancellable
- Returns:
- true if this event is cancelled
-
setCancelled
public void setCancelled(boolean cancel) Description copied from interface:Cancellable
Sets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins.- Specified by:
setCancelled
in interfaceCancellable
- Parameters:
cancel
- true if you wish to cancel this event
-
getHandlers
- Overrides:
getHandlers
in classSendPacketEvent
-
getHandlerList
-