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 ClassesNested 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
ConstructorsConstructorDescriptionSendEntityEquipmentEvent(Player player, Entity target, SendEntityEquipmentEvent.Reason reason, Map<EquipmentSlot, ItemStack> data) -
Method Summary
Modifier and TypeMethodDescriptiongetData()전송 예정인 장비 목록을 반환하며, 목록을 수정할 수 있습니다.static HandlerList이벤트 호출 사유를 가져옵니다.이 패킷의 대상 엔티티를 가져옵니다.booleanGets the cancellation state of this event.voidsetCancelled(boolean cancel) Sets the cancellation state of this event.Methods inherited from class moe.caramel.daydream.event.packet.SendPacketEvent
getPacketTypeMethods inherited from class org.bukkit.event.player.PlayerEvent
getPlayerMethods 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:CancellableGets 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:
isCancelledin interfaceCancellable- Returns:
trueif this event is cancelled
-
setCancelled
public void setCancelled(boolean cancel) Description copied from interface:CancellableSets 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:
setCancelledin interfaceCancellable- Parameters:
cancel-trueif you wish to cancel this event
-
getHandlers
- Overrides:
getHandlersin classSendPacketEvent
-
getHandlerList
-