Class CustomDataExportEvent

java.lang.Object
net.okocraft.box.api.event.BoxEvent
net.okocraft.box.api.event.customdata.CustomDataExportEvent
All Implemented Interfaces:
Cancellable

@NotNullByDefault public class CustomDataExportEvent extends BoxEvent implements Cancellable
  • Constructor Details

    • CustomDataExportEvent

      public CustomDataExportEvent(net.kyori.adventure.key.Key key, MapNode node)
  • Method Details

    • getKey

      public net.kyori.adventure.key.Key getKey()
    • getOriginalNode

      public MapNode getOriginalNode()
    • getResultNode

      public MapNode getResultNode()
    • setResultNode

      public void setResultNode(MapNode node)
    • editNode

      public void editNode(Consumer<MapNode> editor)
    • isCancelled

      public boolean isCancelled()
      Description copied from interface: Cancellable
      Gets if the event has been cancelled.
      Specified by:
      isCancelled in interface Cancellable
      Returns:
      true if canceled, false otherwise.
    • setCancelled

      public void setCancelled(boolean cancel)
      Description copied from interface: Cancellable
      Sets the cancel status of the event.
      Specified by:
      setCancelled in interface Cancellable
      Parameters:
      cancel - true to cancel, false to not.