Class AttachmentEventHooks

java.lang.Object
net.ixdarklord.coolcatcore.internal.attachment.AttachmentEventHooks

public final class AttachmentEventHooks extends Object
  • Field Details

  • Method Details

    • changing

      @Nullable public static <T> @Nullable Object changing(AttachmentHolder holder, Attachment<T> key, @Nullable T oldValue, @Nullable T newValue)
      Asks the CHANGING listeners about a change.
      Returns:
      CANCELLED, or the value to store (a listener's replacement, or newValue)
    • changed

      public static <T> void changed(AttachmentHolder holder, Attachment<T> key, @Nullable T oldValue, @Nullable T newValue)
      Tells listeners about a change; null stands for no stored value.