Package kr.toxicity.model.api.tracker
Record Class EntityTrackerRegistry.MountedHitBox
java.lang.Object
java.lang.Record
kr.toxicity.model.api.tracker.EntityTrackerRegistry.MountedHitBox
- Record Components:
entity- entityhitBox- hitbox
- Enclosing class:
EntityTrackerRegistry
public static record EntityTrackerRegistry.MountedHitBox(@NotNull org.bukkit.entity.Entity entity, @NotNull HitBox hitBox)
extends Record
Hitbox with mount info
-
Constructor Summary
ConstructorsConstructorDescriptionMountedHitBox(@NotNull org.bukkit.entity.Entity entity, @NotNull HitBox hitBox) Creates an instance of aMountedHitBoxrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoiddismount()Dismount this entity from hitbox.voidDismount all entities from hitbox.@NotNull org.bukkit.entity.Entityentity()Returns the value of theentityrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull HitBoxhitBox()Returns the value of thehitBoxrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
dismount
public void dismount()Dismount this entity from hitbox. -
dismountAll
public void dismountAll()Dismount all entities from hitbox. -
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). -
entity
@NotNull public @NotNull org.bukkit.entity.Entity entity()Returns the value of theentityrecord component.- Returns:
- the value of the
entityrecord component
-
hitBox
Returns the value of thehitBoxrecord component.- Returns:
- the value of the
hitBoxrecord component
-