Record Class VisualRangeLeaveEvent
java.lang.Object
java.lang.Record
com.zenith.event.module.VisualRangeLeaveEvent
public record VisualRangeLeaveEvent(PlayerListEntry playerEntry, EntityPlayer playerEntity, boolean isFriend)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionVisualRangeLeaveEvent(PlayerListEntry playerEntry, EntityPlayer playerEntity, boolean isFriend) Creates an instance of aVisualRangeLeaveEventrecord class. -
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.booleanisFriend()Returns the value of theisFriendrecord component.Returns the value of theplayerEntityrecord component.Returns the value of theplayerEntryrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
VisualRangeLeaveEvent
public VisualRangeLeaveEvent(PlayerListEntry playerEntry, EntityPlayer playerEntity, boolean isFriend) Creates an instance of aVisualRangeLeaveEventrecord class.- Parameters:
playerEntry- the value for theplayerEntryrecord componentplayerEntity- the value for theplayerEntityrecord componentisFriend- the value for theisFriendrecord component
-
-
Method Details
-
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
playerEntry
Returns the value of theplayerEntryrecord component.- Returns:
- the value of the
playerEntryrecord component
-
playerEntity
Returns the value of theplayerEntityrecord component.- Returns:
- the value of the
playerEntityrecord component
-
isFriend
public boolean isFriend()Returns the value of theisFriendrecord component.- Returns:
- the value of the
isFriendrecord component
-