Package com.griefdefender.api.event
Class EventCause.Builder
java.lang.Object
com.griefdefender.api.event.EventCause.Builder
- Enclosing class:
EventCause
-
Method Summary
Modifier and TypeMethodDescriptionAppends the specified object to the cause.appendAll(Collection<Object> causes) Appends all specified objects onto the cause.build()Constructs a newEventCausewith information added to the builder.from(EventCause value) Inserts the specified object into the cause.reset()
-
Method Details
-
append
Appends the specified object to the cause.- Parameters:
cause- The object to append to the cause.- Returns:
- The modified builder, for chaining
-
insert
Inserts the specified object into the cause.- Parameters:
position- The position to insert intocause- The object to insert into the cause- Returns:
- The modified builder, for chaining
-
appendAll
Appends all specified objects onto the cause.- Parameters:
causes- The objects to add onto the cause- Returns:
- The modified builder, for chaining
-
build
Constructs a newEventCausewith information added to the builder.- Parameters:
ctx- The context to build the cause with- Returns:
- The built cause
-
from
-
reset
-