Record Class ServerPlayerAttackedUsEvent
java.lang.Object
java.lang.Record
com.zenith.event.module.ServerPlayerAttackedUsEvent
public record ServerPlayerAttackedUsEvent(EntityPlayer attacker, @Nullable org.cloudburstmc.math.vector.Vector3d sourcePosition)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionServerPlayerAttackedUsEvent(EntityPlayer attacker, @Nullable org.cloudburstmc.math.vector.Vector3d sourcePosition) Creates an instance of aServerPlayerAttackedUsEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionattacker()Returns the value of theattackerrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable org.cloudburstmc.math.vector.Vector3dReturns the value of thesourcePositionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ServerPlayerAttackedUsEvent
public ServerPlayerAttackedUsEvent(EntityPlayer attacker, @Nullable org.cloudburstmc.math.vector.Vector3d sourcePosition) Creates an instance of aServerPlayerAttackedUsEventrecord class.- Parameters:
attacker- the value for theattackerrecord componentsourcePosition- the value for thesourcePositionrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
attacker
Returns the value of theattackerrecord component.- Returns:
- the value of the
attackerrecord component
-
sourcePosition
public @Nullable org.cloudburstmc.math.vector.Vector3d sourcePosition()Returns the value of thesourcePositionrecord component.- Returns:
- the value of the
sourcePositionrecord component
-