Package com.griefdefender.api.event
Interface BorderClaimEvent
- All Superinterfaces:
net.kyori.event.Cancellable,ClaimEvent,Event
-
Method Summary
Modifier and TypeMethodDescriptionOptional<net.kyori.adventure.text.Component> Gets the event enter action bar message, if available.Optional<net.kyori.adventure.text.Component> Gets the event enter message, if available.default ClaimGets the claim the entity is attempting to enter.Optional<net.kyori.adventure.title.Title> Gets the event enter message, if available.Optional<net.kyori.adventure.text.Component> Gets the event exit action bar, if available.Optional<net.kyori.adventure.text.Component> Gets the event exit message, if available.Gets the claim the entity is attempting to exit.Optional<net.kyori.adventure.title.Title> Gets the event exit message, if available.@Nullable UsergetUser()Gets the targetUservoidsetEnterActionBar(@Nullable net.kyori.adventure.text.Component message) Sets the enter action bar message for this event only.voidsetEnterChatMessage(@Nullable net.kyori.adventure.text.Component message) Sets the enter message for this event only.voidsetEnterTitle(@Nullable net.kyori.adventure.title.Title title) Sets the enter title for this event only.voidsetExitActionBar(@Nullable net.kyori.adventure.text.Component message) Sets the exit action bar message for this event only.voidsetExitChatMessage(@Nullable net.kyori.adventure.text.Component message) Sets the exit message for this event only.voidsetExitTitle(@Nullable net.kyori.adventure.title.Title title) Sets the exit title for this event only.Methods inherited from interface net.kyori.event.Cancellable
cancelled, cancelledMethods inherited from interface com.griefdefender.api.event.ClaimEvent
getClaim, getClaims, getMessage, getSource, getSourceUser, setMessage
-
Method Details
-
getExitClaim
Claim getExitClaim()Gets the claim the entity is attempting to exit.- Returns:
- The source claim
-
getEnterClaim
Gets the claim the entity is attempting to enter.- Returns:
- The destination claim
-
getEntityUniqueId
UUID getEntityUniqueId()- Returns:
- The target uuid of entity
-
getUser
@Nullable User getUser()Gets the targetUser- Returns:
- The target user if available
-
getEnterChatMessage
Optional<net.kyori.adventure.text.Component> getEnterChatMessage()Gets the event enter message, if available. -
getExitChatMessage
Optional<net.kyori.adventure.text.Component> getExitChatMessage()Gets the event exit message, if available. -
getEnterActionBar
Optional<net.kyori.adventure.text.Component> getEnterActionBar()Gets the event enter action bar message, if available. -
getExitActionBar
Optional<net.kyori.adventure.text.Component> getExitActionBar()Gets the event exit action bar, if available. -
getEnterTitle
Optional<net.kyori.adventure.title.Title> getEnterTitle()Gets the event enter message, if available. -
getExitTitle
Optional<net.kyori.adventure.title.Title> getExitTitle()Gets the event exit message, if available. -
setEnterChatMessage
void setEnterChatMessage(@Nullable net.kyori.adventure.text.Component message) Sets the enter message for this event only.- Parameters:
message- The message to set
-
setExitChatMessage
void setExitChatMessage(@Nullable net.kyori.adventure.text.Component message) Sets the exit message for this event only.- Parameters:
message- The message to set
-
setEnterActionBar
void setEnterActionBar(@Nullable net.kyori.adventure.text.Component message) Sets the enter action bar message for this event only. Note: Setting message tonullwill hide any message set.- Parameters:
message- The message to set
-
setExitActionBar
void setExitActionBar(@Nullable net.kyori.adventure.text.Component message) Sets the exit action bar message for this event only. Note: Setting message tonullwill hide any message set.- Parameters:
message- The message to set
-
setEnterTitle
void setEnterTitle(@Nullable net.kyori.adventure.title.Title title) Sets the enter title for this event only.- Parameters:
message- The message to set
-
setExitTitle
void setExitTitle(@Nullable net.kyori.adventure.title.Title title) Sets the exit title for this event only.- Parameters:
message- The message to set
-