forked from Reil/TheThuum
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allows us to remove affected entities (namely dropped items for shops)
- Loading branch information
Showing
4 changed files
with
51 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
name: TheThuum | ||
main: com.reilaos.bukkit.TheThuum.Plugin | ||
version: 0.4.7 | ||
version: 0.6 |
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
42 changes: 42 additions & 0 deletions
42
src/com/reilaos/bukkit/TheThuum/shouts/ShoutAreaOfEffectEvent.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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
package com.reilaos.bukkit.TheThuum.shouts; | ||
|
||
import org.bukkit.entity.Entity; | ||
import org.bukkit.entity.Player; | ||
import org.bukkit.event.Event; | ||
import org.bukkit.event.HandlerList; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* Created by RoboMWM on 2/4/2017. | ||
* @see com.reilaos.bukkit.TheThuum.Shared#getAreaOfEffect(Player, int, int) | ||
*/ | ||
public class ShoutAreaOfEffectEvent extends Event | ||
{ | ||
// Custom Event Requirements | ||
private static final HandlerList handlers = new HandlerList(); | ||
public static HandlerList getHandlerList() { | ||
return handlers; | ||
} | ||
@Override | ||
public HandlerList getHandlers() { | ||
return handlers; | ||
} | ||
|
||
List<Entity> affectedEntities; | ||
|
||
public ShoutAreaOfEffectEvent(List<Entity> affectedEntities) | ||
{ | ||
this.affectedEntities = affectedEntities; | ||
} | ||
|
||
public List<Entity> getAffectedEntities() | ||
{ | ||
return this.affectedEntities; | ||
} | ||
|
||
public void setAffectedEntities(List<Entity> newAffectedEntities) | ||
{ | ||
this.affectedEntities = newAffectedEntities; | ||
} | ||
} |