Contents
Class DeployableProjectileShooterComponent
java.lang.Object
com.hypixel.hytale.builtin.deployables.component.DeployableProjectileShooterComponent
- All Implemented Interfaces:
Component<EntityStore>, Cloneable
-
Field Summary
Fields inherited from interface Component
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()voidsetActiveTarget(Ref<EntityStore> target) voidspawnProjectile(Ref<EntityStore> entityRef, CommandBuffer<EntityStore> commandBuffer, ProjectileConfig projectileConfig, org.joml.Vector3d spawnPos, org.joml.Vector3d direction) Called to spawn a new projectile entity based on the provided projectile configMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Component
cloneSerializable
-
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 shootercommandBuffer- - Given affiliated commandBuffer instanceprojectileConfig- - Given affiliatedProjectileConfiginstancespawnPos- - Given spawn position of the projectile entitydirection- - Given direction of the projectile entity
-
getProjectiles
-
getProjectilesForRemoval
-
getActiveTarget
-
setActiveTarget
-
clone
- Specified by:
clonein interfaceComponent<EntityStore>- Returns:
- a clone instance of the original component instance.
-