Contents
Class HitSphere
java.lang.Object
com.hypixel.hytale.server.core.modules.projectile.component.HitSphere
- All Implemented Interfaces:
Component<EntityStore>, Cloneable
The sphere a projectile uses to hit entities, in place of its axis-aligned HitBox.
-
Field Summary
Fields inherited from interface Component
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()org.joml.Vector3dcstatic ComponentType<EntityStore, HitSphere> doubleMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Component
cloneSerializable
-
Constructor Details
-
HitSphere
public HitSphere(double radius, @Nonnull org.joml.Vector3dc centerOffset) - Parameters:
radius- The radius at the projectile's spawn scale.centerOffset- The sphere center relative to the projectile position.
-
-
Method Details
-
getComponentType
-
getRadius
public double getRadius() -
getCenterOffset
@Nonnull public org.joml.Vector3dc getCenterOffset() -
clone
- Specified by:
clonein interfaceComponent<EntityStore>- Returns:
- a clone instance of the original component instance.
-