Class EventCause.Builder

java.lang.Object
com.griefdefender.api.event.EventCause.Builder
Enclosing class:
EventCause

public static final class EventCause.Builder extends Object
  • Method Details

    • append

      public EventCause.Builder append(Object cause)
      Appends the specified object to the cause.
      Parameters:
      cause - The object to append to the cause.
      Returns:
      The modified builder, for chaining
    • insert

      public EventCause.Builder insert(int position, Object cause)
      Inserts the specified object into the cause.
      Parameters:
      position - The position to insert into
      cause - The object to insert into the cause
      Returns:
      The modified builder, for chaining
    • appendAll

      public EventCause.Builder appendAll(Collection<Object> causes)
      Appends all specified objects onto the cause.
      Parameters:
      causes - The objects to add onto the cause
      Returns:
      The modified builder, for chaining
    • build

      public EventCause build()
      Constructs a new EventCause with information added to the builder.
      Parameters:
      ctx - The context to build the cause with
      Returns:
      The built cause
    • from

      public EventCause.Builder from(EventCause value)
    • reset

      public EventCause.Builder reset()