use of com.skelril.skree.service.internal.projectilewatcher.shooter.ShootingItemDataManipulatorBuilder 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);
}
Aggregations