Files
2009scape/Server/src/main/content/global/skill/crafting/ChiselLimestonePlugin.java
T
Ceikry a100affda2 Repository reorganisation
Unified kotlin and java into just src/main
Unified the rs09 and core packages
Took all content out of the core package, and placed it into the new content package
Reorganised all source code relating to content to be easier to find and explore
2023-01-26 13:59:28 +00:00

39 lines
966 B
Java

package content.global.skill.crafting;
import content.global.skill.crafting.limestone.ChiselLimestonePulse;
import core.game.interaction.NodeUsageEvent;
import core.game.interaction.UseWithHandler;
import core.game.node.entity.player.Player;
import core.game.node.item.Item;
import core.plugin.Initializable;
import core.plugin.Plugin;
/**
* The plugin that starts the chisel limestone cutting pulse.
* @author Jamix77
*/
@Initializable
public final class ChiselLimestonePlugin extends UseWithHandler {
/**
* Constructs a new {@code GemCutPlugin} {@Code Object}
*/
public ChiselLimestonePlugin() {
super(3211);
}
@Override
public Plugin<Object> newInstance(Object arg) throws Throwable {
addHandler(1755, ITEM_TYPE, this);
return null;
}
@Override
public boolean handle(NodeUsageEvent event) {
final Player player = event.getPlayer();
player.getPulseManager().run(new ChiselLimestonePulse(player, new Item(3211)));
return true;
}
}