API: New events, move around old ones, setters

This commit is contained in:
William278 committed 2023-03-20 16:59:20 +00:00
1 parent 6a62cea52c
commit 503898a0ef
44 files changed
+538 -236

No files matched your search

@@ -0,0 +1,23 @@
package net.william278.huskhomes.event;
import net.william278.huskhomes.position.Warp;
import net.william278.huskhomes.user.CommandUser;
import org.jetbrains.annotations.NotNull;
/**
* Representation of an event that fires when a warp is created or updated
*/
public interface IWarpEditEvent extends Cancellable {
/**
* Get the warp being created or updated
*
* @return the {@link Warp} being saved
*/
@NotNull
Warp getWarp();
@NotNull
CommandUser getEditor();
}