Class RealInvisibilityEvent
java.lang.Object
com.github.retrooper.packetevents.event.PacketEvent
icu.suc.kkw557.realinvisibility.paper.RealInvisibilityEvent
- All Implemented Interfaces:
com.github.retrooper.packetevents.event.CallableEvent,com.github.retrooper.packetevents.event.CancellableEvent
public class RealInvisibilityEvent
extends com.github.retrooper.packetevents.event.PacketEvent
implements com.github.retrooper.packetevents.event.CancellableEvent
Called when a value in the packet to be modified.
-
Constructor Summary
ConstructorsConstructorDescriptionRealInvisibilityEvent(@NotNull org.bukkit.entity.Player player, int entityId, @NotNull icu.suc.kkw557.realinvisibility.common.Setting setting) -
Method Summary
Modifier and TypeMethodDescriptionintorg.bukkit.entity.Playericu.suc.kkw557.realinvisibility.common.SettingbooleanvoidsetCancelled(boolean cancel) Methods inherited from class com.github.retrooper.packetevents.event.PacketEvent
callPacketEventExternal, getTimestampMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.github.retrooper.packetevents.event.CallableEvent
call
-
Constructor Details
-
RealInvisibilityEvent
@Internal public RealInvisibilityEvent(@NotNull @NotNull org.bukkit.entity.Player player, int entityId, @NotNull @NotNull icu.suc.kkw557.realinvisibility.common.Setting setting)
-
-
Method Details
-
getPlayer
public org.bukkit.entity.Player getPlayer()- Returns:
- the player
-
getEntityId
public int getEntityId()- Returns:
- the entity id
-
getSetting
public icu.suc.kkw557.realinvisibility.common.Setting getSetting()- Returns:
- the setting
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfacecom.github.retrooper.packetevents.event.CancellableEvent
-
setCancelled
public void setCancelled(boolean cancel) - Specified by:
setCancelledin interfacecom.github.retrooper.packetevents.event.CancellableEvent
-