Class DeployableProjectileShooterComponent

java.lang.Object
com.hypixel.hytale.builtin.deployables.component.DeployableProjectileShooterComponent
All Implemented Interfaces:
Component<EntityStore>, Cloneable

public class DeployableProjectileShooterComponent extends Object implements Component<EntityStore>
  • Constructor Details

    • DeployableProjectileShooterComponent

      public DeployableProjectileShooterComponent()
  • Method Details

    • getComponentType

    • spawnProjectile

      public void spawnProjectile(@Nonnull Ref<EntityStore> entityRef, @Nonnull CommandBuffer<EntityStore> commandBuffer, @Nonnull ProjectileConfig projectileConfig, @Nonnull org.joml.Vector3d spawnPos, @Nonnull org.joml.Vector3d direction)
      Called to spawn a new projectile entity based on the provided projectile config
      Parameters:
      entityRef - - Given entity reference of the shooter
      commandBuffer - - Given affiliated commandBuffer instance
      projectileConfig - - Given affiliated ProjectileConfig instance
      spawnPos - - Given spawn position of the projectile entity
      direction - - Given direction of the projectile entity
    • getProjectiles

      @Nonnull public List<Ref<EntityStore>> getProjectiles()
    • getProjectilesForRemoval

      @Nonnull public List<Ref<EntityStore>> getProjectilesForRemoval()
    • getActiveTarget

      public Ref<EntityStore> getActiveTarget()
    • setActiveTarget

      public void setActiveTarget(Ref<EntityStore> target)
    • clone

      public Component<EntityStore> clone()
      Specified by:
      clone in interface Component<EntityStore>
      Returns:
      a clone instance of the original component instance.