DeployableProjectileShooterComponent

public class DeployableProjectileShooterComponent implements Component

Component for tracking deployableprojectileshooter state. Attach this component to entities that need to track deployableprojectileshooter data.

java.lang.Object > DeployableProjectileShooterComponent

Field Summary

activeTarget

protected Ref activeTarget

Field activeTarget.

Method Detail

DeployableProjectileShooterComponent

public public DeployableProjectileShooterComponent ()

Method DeployableProjectileShooterComponent.

getComponentType

public DeployableProjectileShooterComponent> getComponentType ()

Method getComponentType.

spawnProjectile

public void spawnProjectile (final Ref entityRef, @Nonnull final CommandBuffer commandBuffer, @Nonnull final ProjectileConfig projectileConfig, @Nonnull final UUID ownerUuid, @Nonnull final Vector3d spawnPos, @Nonnull final Vector3d direction)

Method spawnProjectile.

Parameters:
final Ref entityRef
@Nonnull final CommandBuffer commandBuffer
@Nonnull final ProjectileConfig projectileConfig
@Nonnull final UUID ownerUuid
@Nonnull final Vector3d spawnPos
@Nonnull final Vector3d direction

getProjectiles

public List> getProjectiles ()

Method getProjectiles.

getProjectilesForRemoval

public List> getProjectilesForRemoval ()

Method getProjectilesForRemoval.

getActiveTarget

public Ref getActiveTarget ()

Method getActiveTarget.

setActiveTarget

public void setActiveTarget (final Ref target)

Method setActiveTarget.

Parameters:
final Ref target

clone

public Component clone ()

Method clone.