Adds some events that trigger when NPC actions start or end, and when sounds are played
This commit is contained in:
src/main
java
net
knarcraft
blacksmith
BlacksmithPlugin.java
config
event
AbstractBlacksmithPluginEvent.javaActionStartEvent.javaBlacksmithPluginEvent.javaBlacksmithReforgeFailEvent.javaBlacksmithReforgeStartEvent.javaBlacksmithReforgeSucceedEvent.javaNPCSoundEvent.javaReforgeEndEvent.javaSalvageEndEvent.javaScrapperSalvageFailEvent.javaScrapperSalvageStartEvent.javaScrapperSalvageSucceedEvent.java
trait
resources
@ -0,0 +1,18 @@
|
||||
package net.knarcraft.blacksmith.event;
|
||||
|
||||
/**
|
||||
* An event triggered when a blacksmith or scrapper starts reforging or salvaging an item
|
||||
*/
|
||||
@SuppressWarnings("unused")
|
||||
public interface ActionStartEvent extends BlacksmithPluginEvent {
|
||||
|
||||
/**
|
||||
* Gets the end time for this action
|
||||
*
|
||||
* <p>The end time is a millisecond time-stamp, basically the same format used by currentTimeMillis();.</p>
|
||||
*
|
||||
* @return <p>The end time</p>
|
||||
*/
|
||||
long getActionEndTime();
|
||||
|
||||
}
|
Reference in New Issue
Block a user