Class ProjectileModule
java.lang.Object
com.hypixel.hytale.server.core.plugin.PluginBase
com.hypixel.hytale.server.core.plugin.JavaPlugin
com.hypixel.hytale.server.core.modules.projectile.ProjectileModule
- All Implemented Interfaces:
CommandOwner
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static ProjectileModulestatic final PluginManifeststatic final Messageprivate ComponentType<EntityStore, PredictedProjectile> private ComponentType<EntityStore, Projectile> Fields inherited from class com.hypixel.hytale.server.core.plugin.PluginBase
METRICS_REGISTRY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ProjectileModuleget()private static voidonProjectileSpawnInteraction(Ref<EntityStore> ref, Ref<EntityStore> creatorRef, Store<EntityStore> store) protected voidsetup()spawnProjectile(Ref<EntityStore> creatorRef, CommandBuffer<EntityStore> commandBuffer, ProjectileConfig config, Vector3d position, Vector3d direction) spawnProjectile(UUID predictionId, Ref<EntityStore> creatorRef, CommandBuffer<EntityStore> commandBuffer, ProjectileConfig config, Vector3d position, Vector3d direction) Methods inherited from class com.hypixel.hytale.server.core.plugin.JavaPlugin
getClassLoader, getFile, getType, start0Methods inherited from class com.hypixel.hytale.server.core.plugin.PluginBase
getAssetRegistry, getBasePermission, getBlockStateRegistry, getChunkStoreRegistry, getClientFeatureRegistry, getCodecRegistry, getCodecRegistry, getCodecRegistry, getCommandRegistry, getDataDirectory, getEntityRegistry, getEntityStoreRegistry, getEventRegistry, getIdentifier, getLogger, getManifest, getName, getState, getTaskRegistry, isDisabled, isEnabled, preLoad, setup0, shutdown, shutdown0, start, withConfig, withConfig
-
Field Details
-
MANIFEST
-
MESSAGE_GENERAL_UNKNOWN
-
instance
-
projectileComponentType
-
standardPhysicsProviderComponentType
-
predictedProjectileComponentType
-
-
Constructor Details
-
ProjectileModule
-
-
Method Details
-
get
-
setup
protected void setup()- Overrides:
setupin classPluginBase
-
spawnProjectile
@Nonnull public Ref<EntityStore> spawnProjectile(Ref<EntityStore> creatorRef, @Nonnull CommandBuffer<EntityStore> commandBuffer, @Nonnull ProjectileConfig config, @Nonnull Vector3d position, @Nonnull Vector3d direction) -
spawnProjectile
@Nonnull public Ref<EntityStore> spawnProjectile(@Nullable UUID predictionId, Ref<EntityStore> creatorRef, @Nonnull CommandBuffer<EntityStore> commandBuffer, @Nonnull ProjectileConfig config, @Nonnull Vector3d position, @Nonnull Vector3d direction) -
onProjectileSpawnInteraction
private static void onProjectileSpawnInteraction(@Nonnull Ref<EntityStore> ref, @Nonnull Ref<EntityStore> creatorRef, @Nonnull Store<EntityStore> store) -
getProjectileComponentType
-
getStandardPhysicsProviderComponentType
@Nonnull public ComponentType<EntityStore,StandardPhysicsProvider> getStandardPhysicsProviderComponentType() -
getPredictedProjectileComponentType
@Nonnull public ComponentType<EntityStore,PredictedProjectile> getPredictedProjectileComponentType()
-