Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added the ability to disable different upgrade types completely
- Loading branch information
1 parent
9e993d5
commit f294eaf
Showing
19 changed files
with
998 additions
and
671 deletions.
There are no files selected for viewing
12 changes: 10 additions & 2 deletions
12
...n/java/com/bgsoftware/superiorskyblock/module/upgrades/listeners/WildStackerListener.java
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 |
---|---|---|
@@ -1,14 +1,22 @@ | ||
package com.bgsoftware.superiorskyblock.module.upgrades.listeners; | ||
|
||
import com.bgsoftware.superiorskyblock.module.BuiltinModules; | ||
import com.bgsoftware.superiorskyblock.module.upgrades.type.UpgradeTypeSpawnerRates; | ||
import org.bukkit.event.EventHandler; | ||
import org.bukkit.event.Listener; | ||
|
||
import javax.annotation.Nullable; | ||
|
||
public final class WildStackerListener implements Listener { | ||
|
||
@Nullable | ||
private final UpgradeTypeSpawnerRates spawnerRates = BuiltinModules.UPGRADES | ||
.getEnabledUpgradeType(UpgradeTypeSpawnerRates.class); | ||
|
||
@EventHandler | ||
public void onWildStackerStackSpawn(com.bgsoftware.wildstacker.api.events.SpawnerStackedEntitySpawnEvent e) { | ||
if (UpgradesListener.IMP != null) | ||
UpgradesListener.IMP.handleSpawnerSpawn(e.getSpawner()); | ||
if (spawnerRates != null) | ||
spawnerRates.handleSpawnerSpawn(e.getSpawner()); | ||
} | ||
|
||
} |
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
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
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
Oops, something went wrong.