Class KillMessages
java.lang.Object
de.marcely.bedwars.api.cosmetics.shop.data.KillMessages
- All Implemented Interfaces:
ActionData
Data for when kill messages are changed.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe different events that can trigger a kill message. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract StringgetId()Returns the unique id of this kill messages as configured.getMessages(KillMessages.Event event) Returns the potential messages for the specified event.getType()Returns the type of this action data.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.marcely.bedwars.api.cosmetics.shop.data.ActionData
as, asAnimation, asImage, asKillMessages, asProductModifier, asSkin
-
Constructor Details
-
KillMessages
public KillMessages()
-
-
Method Details
-
getType
Description copied from interface:ActionDataReturns the type of this action data.- Specified by:
getTypein interfaceActionData- Returns:
- The type represented by this data
-
getId
Returns the unique id of this kill messages as configured.- Returns:
- The id
-
getMessages
Returns the potential messages for the specified event.In case there are multiple, a random one is chosen. If the list is instead empty, it will try to use the fallback event's (
KillMessages.Event.getFallback()) messages (if any).- Parameters:
event- The event to get messages for- Returns:
- The messages (unmodifiable)
-