Class CustomItemRenameEvent


public class CustomItemRenameEvent extends ItemEvent
An event that is called when a new BoxCustomItem has been renamed.
  • Constructor Details

    • CustomItemRenameEvent

      public CustomItemRenameEvent(@NotNull @NotNull BoxCustomItem renamedItem, @NotNull @NotNull String previousName)
      The constructor of a CustomItemRenameEvent.
      Parameters:
      renamedItem - a renamed item
      previousName - a previous name of the item
  • Method Details

    • getPreviousName

      @NotNull public @NotNull String getPreviousName()
      Gets the previous name of the item.
      Returns:
      the previous name of the item
    • toString

      public String toString()
      Overrides:
      toString in class ItemEvent