Class FeatureEvent
java.lang.Object
net.okocraft.box.api.event.BoxEvent
net.okocraft.box.api.event.feature.FeatureEvent
A class that represents a
BoxFeature
related event.-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionFeatureEvent
(@NotNull BoxFeature feature, @NotNull FeatureEvent.Type type) The constructor of aFeatureEvent
. -
Method Summary
Modifier and TypeMethodDescription@NotNull BoxFeature
Gets theBoxFeature
of this event.@NotNull FeatureEvent.Type
getType()
Gets theFeatureEvent.Type
of this event.@NotNull String
Creates the debug log from this event.toString()
-
Constructor Details
-
FeatureEvent
The constructor of aFeatureEvent
.- Parameters:
feature
- theBoxFeature
of this eventtype
- the type of this event
-
-
Method Details
-
getFeature
Gets theBoxFeature
of this event.- Returns:
- the
BoxFeature
of this event
-
getType
Gets theFeatureEvent.Type
of this event.- Returns:
- the
FeatureEvent.Type
of this event
-
toDebugLog
Description copied from class:BoxEvent
Creates the debug log from this event.- Overrides:
toDebugLog
in classBoxEvent
- Returns:
- the debug log
-
toString
-