Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Constructor Details
- Method Details
- getComponentType()
- getVelocity()
- setVelocity(Vector3d)
- getVelocityType()
- setVelocityType(ChangeVelocityType)
- getVelocityConfig()
- setVelocityConfig(VelocityConfig)
- addModifier(double)
- applyModifiers()
- getDuration()
- setDuration(float)
- getTimer()
- incrementTimer(float)
- setTimer(float)
- clone()
- getPreMultiplier()
- setPreMultiplier(float)
Class KnockbackComponent
java.lang.Object
com.hypixel.hytale.server.core.entity.knockback.KnockbackComponent
- All Implemented Interfaces:
Component<EntityStore>, Cloneable
-
Field Summary
Fields inherited from interface Component
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddModifier(double modifier) voidclone()static ComponentType<EntityStore, KnockbackComponent> floatfloatfloatgetTimer()org.joml.Vector3dvoidincrementTimer(float time) voidsetDuration(float duration) voidsetPreMultiplier(float preMultiplier) voidsetTimer(float time) voidsetVelocity(org.joml.Vector3d velocity) voidsetVelocityConfig(VelocityConfig velocityConfig) voidsetVelocityType(ChangeVelocityType velocityType) Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Component
cloneSerializable
-
Constructor Details
-
KnockbackComponent
public KnockbackComponent()
-
-
Method Details
-
getComponentType
-
getVelocity
@Nonnull public org.joml.Vector3d getVelocity() -
setVelocity
public void setVelocity(@Nonnull org.joml.Vector3d velocity) -
getVelocityType
-
setVelocityType
-
getVelocityConfig
-
setVelocityConfig
-
addModifier
public void addModifier(double modifier) -
applyModifiers
public void applyModifiers() -
getDuration
public float getDuration() -
setDuration
public void setDuration(float duration) -
getTimer
public float getTimer() -
incrementTimer
public void incrementTimer(float time) -
setTimer
public void setTimer(float time) -
clone
- Specified by:
clonein interfaceComponent<EntityStore>- Returns:
- a clone instance of the original component instance.
-
getPreMultiplier
public float getPreMultiplier() -
setPreMultiplier
public void setPreMultiplier(float preMultiplier)
-