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

    Constructors
    Constructor
    Description
    RealInvisibilityEvent(@NotNull org.bukkit.entity.Player player, int entityId, @NotNull icu.suc.kkw557.realinvisibility.common.Setting setting)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    org.bukkit.entity.Player
     
    icu.suc.kkw557.realinvisibility.common.Setting
     
    boolean
     
    void
    setCancelled(boolean cancel)
     

    Methods inherited from class com.github.retrooper.packetevents.event.PacketEvent

    callPacketEventExternal, getTimestamp

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods 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:
      isCancelled in interface com.github.retrooper.packetevents.event.CancellableEvent
    • setCancelled

      public void setCancelled(boolean cancel)
      Specified by:
      setCancelled in interface com.github.retrooper.packetevents.event.CancellableEvent