Class KnockbackComponent

java.lang.Object
com.hypixel.hytale.server.core.entity.knockback.KnockbackComponent
All Implemented Interfaces:
Component<EntityStore>, Cloneable

public class KnockbackComponent extends Object implements Component<EntityStore>
  • Field Details

    • velocity

      @Nonnull private Vector3d velocity
    • velocityType

      private ChangeVelocityType velocityType
    • velocityConfig

      @Nullable private VelocityConfig velocityConfig
    • modifiers

      @Nonnull private it.unimi.dsi.fastutil.doubles.DoubleList modifiers
    • duration

      private float duration
    • timer

      private float timer
  • Constructor Details

    • KnockbackComponent

      public KnockbackComponent()
  • Method Details

    • getComponentType

      public static ComponentType<EntityStore,KnockbackComponent> getComponentType()
    • getVelocity

      @Nonnull public Vector3d getVelocity()
    • setVelocity

      public void setVelocity(@Nonnull Vector3d velocity)
    • getVelocityType

      public ChangeVelocityType getVelocityType()
    • setVelocityType

      public void setVelocityType(ChangeVelocityType velocityType)
    • getVelocityConfig

      @Nullable public VelocityConfig getVelocityConfig()
    • setVelocityConfig

      public void setVelocityConfig(@Nullable VelocityConfig velocityConfig)
    • 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

      @Nonnull public Component<EntityStore> clone()
      Specified by:
      clone in interface Component<EntityStore>
      Overrides:
      clone in class Object