ProjectileModule

public class ProjectileModule extends JavaPlugin

Class ProjectileModule. Provides projectilemodule functionality for the Hytale server.

java.lang.Object > JavaPlugin > ProjectileModule

Field Summary

entityStoreRegistry

final ComponentRegistryProxy entityStoreRegistry

Field entityStoreRegistry.

holder

final Holder holder

Field holder.

rotation

final Vector3f rotation

Field rotation.

rotationOffset

final Direction rotationOffset

Field rotationOffset.

offset

final Vector3d offset

Field offset.

model

final Model model

Field model.

launchWorldSoundEventIndex

final int launchWorldSoundEventIndex

Field launchWorldSoundEventIndex.

projectileSoundEventIndex

final int projectileSoundEventIndex

Field projectileSoundEventIndex.

audioComponent

final AudioComponent audioComponent

Field audioComponent.

projectileRef

final Ref projectileRef

Field projectileRef.

interactionManagerComponent

final InteractionManager interactionManagerComponent

Field interactionManagerComponent.

entity

final Entity entity

Field entity.

livingEntity

final LivingEntity livingEntity

Field livingEntity.

context

final InteractionContext context

Field context.

rootInteractionId

final String rootInteractionId

Field rootInteractionId.

rootInteraction

final RootInteraction rootInteraction

Field rootInteraction.

chain

final InteractionChain chain

Field chain.

Method Detail

get

static ProjectileModule get ()

Method get.

ProjectileModule

public public ProjectileModule (@Nonnull final JavaPluginInit init)

Method ProjectileModule.

Parameters:
@Nonnull final JavaPluginInit init

setup

protected void setup ()

Method setup.

StandardPhysicsTickSystem

public new StandardPhysicsTickSystem ()

Method StandardPhysicsTickSystem.

spawnProjectile

public Ref spawnProjectile (final Ref creatorRef, @Nonnull final CommandBuffer commandBuffer, @Nonnull final ProjectileConfig config, @Nonnull final Vector3d position, @Nonnull final Vector3d direction)

Method spawnProjectile.

Parameters:
final Ref creatorRef
@Nonnull final CommandBuffer commandBuffer
@Nonnull final ProjectileConfig config
@Nonnull final Vector3d position
@Nonnull final Vector3d direction

TransformComponent

public new TransformComponent (position, rotation)

Method TransformComponent.

Parameters:
position position
rotation rotation

HeadRotation

public new HeadRotation (rotation)

Method HeadRotation.

Parameters:
rotation rotation

UUIDComponent

public new UUIDComponent (predictionId)

Method UUIDComponent.

Parameters:
predictionId predictionId

Interactions

public new Interactions (config.getInteractions()

Method Interactions.

Parameters:
config.getInteractions( config.getInteractions(

ModelComponent

public new ModelComponent (model)

Method ModelComponent.

Parameters:
model model

PersistentModel

public new PersistentModel (model.toReference()

Method PersistentModel.

Parameters:
model.toReference( model.toReference(

BoundingBox

public new BoundingBox (model.getBoundingBox()

Method BoundingBox.

Parameters:
model.getBoundingBox( model.getBoundingBox(

NetworkId

public new NetworkId (commandBuffer.getExternalData()

Method NetworkId.

Parameters:
commandBuffer.getExternalData( commandBuffer.getExternalData(

PredictedProjectile

public new PredictedProjectile (predictionId)

Method PredictedProjectile.

Parameters:
predictionId predictionId

Velocity

public new Velocity ()

Method Velocity.

DespawnComponent

public new DespawnComponent (commandBuffer.getResource(TimeResource.getResourceType()

Method DespawnComponent.

Parameters:
commandBuffer.getResource(TimeResource.getResourceType( commandBuffer.getResource(TimeResource.getResourceType(

onProjectileSpawnInteraction

public > onProjectileSpawnInteraction (projectileRef, creatorRef, store)

Method onProjectileSpawnInteraction.

Parameters:
projectileRef projectileRef
creatorRef creatorRef
store store

getProjectileComponentType

public Projectile> getProjectileComponentType ()

Method getProjectileComponentType.

getStandardPhysicsProviderComponentType

public StandardPhysicsProvider> getStandardPhysicsProviderComponentType ()

Method getStandardPhysicsProviderComponentType.

getPredictedProjectileComponentType

public PredictedProjectile> getPredictedProjectileComponentType ()

Method getPredictedProjectileComponentType.