Record Class EntityTrackerRegistry.MountedHitBox
java.lang.Object
java.lang.Record
kr.toxicity.model.api.tracker.EntityTrackerRegistry.MountedHitBox
- Record Components:
entity- the mounted entityhitBox- the hitbox itself
- Enclosing class:
EntityTrackerRegistry
public static record EntityTrackerRegistry.MountedHitBox(@NotNull PlatformEntity entity, @NotNull HitBox hitBox)
extends Record
Represents a hitbox that has an entity mounted on it.
- Since:
- 1.15.2
-
Constructor Summary
ConstructorsConstructorDescriptionMountedHitBox(@NotNull PlatformEntity entity, @NotNull HitBox hitBox) Creates an instance of aMountedHitBoxrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoiddismount()Dismounts the entity from the hitbox.voidDismounts all entities from the hitbox.@NotNull PlatformEntityentity()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()Dismounts the entity from the hitbox.- Since:
- 1.15.2
-
dismountAll
public void dismountAll()Dismounts all entities from the hitbox.- Since:
- 1.15.2
-
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). -
entity
-
hitBox
-