forked from DiamondDagger590/McRPG
-
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.
Add Divine Fur ability implementation (6/7)
- Loading branch information
1 parent
419c550
commit 7d750cb
Showing
3 changed files
with
164 additions
and
10 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
src/main/java/us/eunoians/mcrpg/api/events/mcrpg/taming/DivineFurEvent.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,24 @@ | ||
package us.eunoians.mcrpg.api.events.mcrpg.taming; | ||
|
||
import lombok.Getter; | ||
import lombok.Setter; | ||
import org.bukkit.event.entity.EntityDamageEvent; | ||
import us.eunoians.mcrpg.abilities.taming.DivineFur; | ||
import us.eunoians.mcrpg.api.events.mcrpg.AbilityActivateEvent; | ||
import us.eunoians.mcrpg.players.McRPGPlayer; | ||
import us.eunoians.mcrpg.types.AbilityEventType; | ||
|
||
public class DivineFurEvent extends AbilityActivateEvent{ | ||
|
||
@Getter | ||
private EntityDamageEvent.DamageCause damageCause; | ||
|
||
@Getter @Setter | ||
private double percentProtected; | ||
|
||
public DivineFurEvent(McRPGPlayer mcRPGPlayer, DivineFur divineFur, EntityDamageEvent.DamageCause damageCause, double percentProtected){ | ||
super(divineFur, mcRPGPlayer, AbilityEventType.RECREATIONAL); | ||
this.damageCause = damageCause; | ||
this.percentProtected = percentProtected; | ||
} | ||
} |
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