-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
42 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
eco-core/core-plugin/src/main/kotlin/com/willfp/ecobosses/events/BossTryDropItemEvent.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package com.willfp.ecobosses.events | ||
|
||
import com.willfp.ecobosses.bosses.EcoBoss | ||
import com.willfp.ecobosses.bosses.LivingEcoBoss | ||
import org.bukkit.Location | ||
import org.bukkit.entity.Player | ||
import org.bukkit.event.Event | ||
import org.bukkit.event.HandlerList | ||
import org.bukkit.inventory.ItemStack | ||
|
||
class BossTryDropItemEvent( | ||
val boss: EcoBoss, | ||
val location: Location, | ||
var items: MutableCollection<ItemStack>, | ||
var chance: Double, | ||
val player: Player? | ||
): Event() { | ||
override fun getHandlers(): HandlerList { | ||
return HANDLERS | ||
} | ||
|
||
companion object { | ||
private val HANDLERS = HandlerList() | ||
|
||
@JvmStatic | ||
fun getHandlerList(): HandlerList { | ||
return HANDLERS | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters