Makes ActionStartEvent give duration in ticks instead of end time
All checks were successful
EpicKnarvik97/Blacksmith/pipeline/head This commit looks good

This commit is contained in:
2024-07-29 01:40:08 +02:00
parent 523e4cb47a
commit afb608b609
5 changed files with 43 additions and 47 deletions

View File

@ -7,12 +7,10 @@ package net.knarcraft.blacksmith.event;
public interface ActionStartEvent extends BlacksmithPluginEvent {
/**
* Gets the end time for this action
* Gets the amount of ticks this action will take
*
* <p>The end time is a millisecond time-stamp, basically the same format used by currentTimeMillis();.</p>
*
* @return <p>The end time</p>
* @return <p>The duration in ticks</p>
*/
long getActionEndTime();
long getActionDurationTicks();
}