public class ProjectileModule extends JavaPlugin
Class ProjectileModule. Provides projectilemodule functionality for the Hytale server.
java.lang.Object > JavaPlugin > ProjectileModule
Field Summary
entityStoreRegistry
Field entityStoreRegistry.
holder
Field holder.
rotation
Field rotation.
rotationOffset
Field rotationOffset.
offset
Field offset.
model
Field model.
launchWorldSoundEventIndex
Field launchWorldSoundEventIndex.
projectileSoundEventIndex
Field projectileSoundEventIndex.
audioComponent
Field audioComponent.
projectileRef
Field projectileRef.
interactionManagerComponent
Field interactionManagerComponent.
entity
Field entity.
livingEntity
Field livingEntity.
context
Field context.
rootInteractionId
Field rootInteractionId.
rootInteraction
Field rootInteraction.
chain
Field chain.
Method Detail
setup
void
setup
()
Method setup.
StandardPhysicsTickSystem
new
StandardPhysicsTickSystem
()
Method StandardPhysicsTickSystem.
spawnProjectile
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 RefcreatorRef@Nonnull final CommandBuffercommandBuffer@Nonnull final ProjectileConfigconfig@Nonnull final Vector3dposition@Nonnull final Vector3ddirection
TransformComponent
new
TransformComponent
(position, rotation)
Method TransformComponent.
- Parameters:
positionpositionrotationrotation
HeadRotation
new
HeadRotation
(rotation)
Method HeadRotation.
- Parameters:
rotationrotation
UUIDComponent
new
UUIDComponent
(predictionId)
Method UUIDComponent.
- Parameters:
predictionIdpredictionId
Interactions
new
Interactions
(config.getInteractions()
Method Interactions.
- Parameters:
config.getInteractions(config.getInteractions(
ModelComponent
new
ModelComponent
(model)
Method ModelComponent.
- Parameters:
modelmodel
PersistentModel
new
PersistentModel
(model.toReference()
Method PersistentModel.
- Parameters:
model.toReference(model.toReference(
BoundingBox
new
BoundingBox
(model.getBoundingBox()
Method BoundingBox.
- Parameters:
model.getBoundingBox(model.getBoundingBox(
NetworkId
new
NetworkId
(commandBuffer.getExternalData()
Method NetworkId.
- Parameters:
commandBuffer.getExternalData(commandBuffer.getExternalData(
PredictedProjectile
new
PredictedProjectile
(predictionId)
Method PredictedProjectile.
- Parameters:
predictionIdpredictionId
Velocity
new
Velocity
()
Method Velocity.
DespawnComponent
new
DespawnComponent
(commandBuffer.getResource(TimeResource.getResourceType()
Method DespawnComponent.
- Parameters:
commandBuffer.getResource(TimeResource.getResourceType(commandBuffer.getResource(TimeResource.getResourceType(
onProjectileSpawnInteraction
>
onProjectileSpawnInteraction
(projectileRef, creatorRef, store)
Method onProjectileSpawnInteraction.
- Parameters:
projectileRefprojectileRefcreatorRefcreatorRefstorestore
getProjectileComponentType
Projectile>
getProjectileComponentType
()
Method getProjectileComponentType.
getStandardPhysicsProviderComponentType
StandardPhysicsProvider>
getStandardPhysicsProviderComponentType
()
Method getStandardPhysicsProviderComponentType.
getPredictedProjectileComponentType
PredictedProjectile>
getPredictedProjectileComponentType
()
Method getPredictedProjectileComponentType.