Record Class Listener
java.lang.Object
java.lang.Record
icu.suc.kkw557.realinvisibility.paper.internal.Listener
- All Implemented Interfaces:
com.github.retrooper.packetevents.event.PacketListener,org.bukkit.event.Listener
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.voidonEntityPotionEffect(@NotNull org.bukkit.event.entity.EntityPotionEffectEvent event) voidonEntityRemove(@NotNull org.bukkit.event.entity.EntityRemoveEvent event) voidonPacketSend(@NotNull com.github.retrooper.packetevents.event.PacketSendEvent event) voidonPlayerJoin(@NotNull org.bukkit.event.player.PlayerJoinEvent event) voidonPlayerQuit(@NotNull org.bukkit.event.player.PlayerQuitEvent event) Set<icu.suc.kkw557.realinvisibility.common.Setting> settings()Returns the value of thesettingsrecord component.final StringtoString()Returns a string representation of this record class.tracked()Returns the value of thetrackedrecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.github.retrooper.packetevents.event.PacketListener
asAbstract, onPacketEventExternal, onPacketReceive, onUserConnect, onUserDisconnect, onUserLogin
-
Constructor Details
-
Listener
-
Listener
Creates an instance of aListenerrecord class.- Parameters:
tracked- the value for thetrackedrecord componentsettings- the value for thesettingsrecord component
-
-
Method Details
-
onPlayerJoin
public void onPlayerJoin(@NotNull @NotNull org.bukkit.event.player.PlayerJoinEvent event) -
onPlayerQuit
public void onPlayerQuit(@NotNull @NotNull org.bukkit.event.player.PlayerQuitEvent event) -
onEntityPotionEffect
public void onEntityPotionEffect(@NotNull @NotNull org.bukkit.event.entity.EntityPotionEffectEvent event) -
onEntityRemove
public void onEntityRemove(@NotNull @NotNull org.bukkit.event.entity.EntityRemoveEvent event) -
onPacketSend
public void onPacketSend(@NotNull @NotNull com.github.retrooper.packetevents.event.PacketSendEvent event) - Specified by:
onPacketSendin interfacecom.github.retrooper.packetevents.event.PacketListener
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
tracked
Returns the value of thetrackedrecord component.- Returns:
- the value of the
trackedrecord component
-
settings
Returns the value of thesettingsrecord component.- Returns:
- the value of the
settingsrecord component
-