Search in sources :

Example 1 with ProjectileWatcherServiceImpl

use of com.skelril.skree.service.internal.projectilewatcher.ProjectileWatcherServiceImpl in project Skree by Skelril.

the class ProjectileWatcherSystem method init.

@NModuleTrigger(trigger = "INITIALIZATION")
public void init() {
    service = new ProjectileWatcherServiceImpl();
    // Register Shooting Item Manipulator
    DataRegistration.builder().dataClass(ShootingItemData.class).immutableClass(ImmutableShootingItemData.class).builder(new ShootingItemDataManipulatorBuilder()).manipulatorId("shooting_item_manipulator").dataName("Shooting Item Data").buildAndRegister(SkreePlugin.container());
    // Register the service & command
    Sponge.getEventManager().registerListeners(SkreePlugin.inst(), service);
    Sponge.getServiceManager().setProvider(SkreePlugin.inst(), ProjectileWatcherService.class, service);
}
Also used : ProjectileWatcherServiceImpl(com.skelril.skree.service.internal.projectilewatcher.ProjectileWatcherServiceImpl) ShootingItemDataManipulatorBuilder(com.skelril.skree.service.internal.projectilewatcher.shooter.ShootingItemDataManipulatorBuilder) ImmutableShootingItemData(com.skelril.skree.service.internal.projectilewatcher.shooter.ImmutableShootingItemData) ShootingItemData(com.skelril.skree.service.internal.projectilewatcher.shooter.ShootingItemData) NModuleTrigger(com.skelril.nitro.module.NModuleTrigger)

Aggregations

NModuleTrigger (com.skelril.nitro.module.NModuleTrigger)1 ProjectileWatcherServiceImpl (com.skelril.skree.service.internal.projectilewatcher.ProjectileWatcherServiceImpl)1 ImmutableShootingItemData (com.skelril.skree.service.internal.projectilewatcher.shooter.ImmutableShootingItemData)1 ShootingItemData (com.skelril.skree.service.internal.projectilewatcher.shooter.ShootingItemData)1 ShootingItemDataManipulatorBuilder (com.skelril.skree.service.internal.projectilewatcher.shooter.ShootingItemDataManipulatorBuilder)1