-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '1.19.2' into 1.19.2-damage-source-backport
- Loading branch information
Showing
103 changed files
with
456 additions
and
466 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,10 +1,19 @@ | ||
### Additions | ||
- | ||
|
||
- Added Mana Regen attribute | ||
- Added the Amethyst Resonance Charm, a craftable necklace that gives +15% mana regeneration | ||
- Added InscribeSpellEvent for developers, courtesy of Silvertide7 | ||
- Added ChangeManaEvent for developers | ||
|
||
### Changes | ||
- Buff Magic Arrow's base damage by 5 | ||
- Add CastSource to SpellCastEvent | ||
- Add CastSource to SpellCastEvent for developers | ||
- Rework Priest Armor Texture, courtesy of Crydigo | ||
- Tweak most jewelry textures | ||
- Any armor can now be upgraded instead of only mage armor (can_be_upgraded tag has been removed) | ||
- Spectral Hammer debris reduced | ||
|
||
### Fixes | ||
- Fix inconsistent Magic Arrow block penetration | ||
- Fixed inconsistent Magic Arrow block penetration | ||
- Fixed the two-handed sword models when using left hand mode | ||
- Mobs can no longer detect your armor when affected by True Invisibility | ||
- Fixed geckolib armor anchor points causing misaligned armor models when the player is animating |
53 changes: 53 additions & 0 deletions
53
src/main/java/io/redspace/ironsspellbooks/api/events/ChangeManaEvent.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,53 @@ | ||
package io.redspace.ironsspellbooks.api.events; | ||
|
||
|
||
import io.redspace.ironsspellbooks.api.magic.MagicData; | ||
import io.redspace.ironsspellbooks.capabilities.spell.SpellData; | ||
import net.minecraft.world.entity.player.Player; | ||
import net.minecraftforge.common.MinecraftForge; | ||
import net.minecraftforge.event.entity.player.PlayerEvent; | ||
import net.minecraftforge.eventbus.api.Cancelable; | ||
|
||
/** | ||
* ChangeManaEvent is fired whenever a {@link Player}'s mana is changed via {@link io.redspace.ironsspellbooks.api.magic.MagicData#setMana(float)}.<br> | ||
* <br> | ||
* This event is {@link Cancelable}.<br> | ||
* If this event is canceled, the player's mana does not change.<br> | ||
* <br> | ||
* This event does not have a result. {@link HasResult}<br> | ||
* <br> | ||
* This event is fired on the {@link MinecraftForge#EVENT_BUS}.<br> | ||
**/ | ||
public class ChangeManaEvent extends PlayerEvent { | ||
private final MagicData magicData; | ||
private final float oldMana; | ||
private float newMana; | ||
|
||
public ChangeManaEvent(Player player, MagicData magicData, float oldMana, float newMana) { | ||
super(player); | ||
this.magicData = magicData; | ||
this.oldMana = oldMana; | ||
this.newMana = newMana; | ||
} | ||
|
||
@Override | ||
public boolean isCancelable() { | ||
return true; | ||
} | ||
|
||
public MagicData getMagicData() { | ||
return magicData; | ||
} | ||
|
||
public float getOldMana() { | ||
return oldMana; | ||
} | ||
|
||
public float getNewMana() { | ||
return newMana; | ||
} | ||
|
||
public void setNewMana(float newMana) { | ||
this.newMana = newMana; | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
src/main/java/io/redspace/ironsspellbooks/api/events/InscribeSpellEvent.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,31 @@ | ||
package io.redspace.ironsspellbooks.api.events; | ||
|
||
|
||
import io.redspace.ironsspellbooks.capabilities.spell.SpellData; | ||
import net.minecraft.world.entity.player.Player; | ||
import net.minecraftforge.common.MinecraftForge; | ||
import net.minecraftforge.event.entity.player.PlayerEvent; | ||
import net.minecraftforge.eventbus.api.Cancelable; | ||
|
||
/** | ||
* InscribeSpellEvent is fired whenever a {@link Player} inscribes a spell into a spellbook.<br> | ||
* <br> | ||
* This event is {@link Cancelable}.<br> | ||
* If this event is canceled, the spell is not inscribed.<br> | ||
* <br> | ||
* This event does not have a result. {@link HasResult}<br> | ||
* <br> | ||
* This event is fired on the {@link MinecraftForge#EVENT_BUS}.<br> | ||
**/ | ||
public class InscribeSpellEvent extends PlayerEvent { | ||
private final SpellData spellData; | ||
public InscribeSpellEvent(Player player, SpellData spellData) | ||
{ | ||
super(player); | ||
this.spellData = spellData; | ||
} | ||
|
||
@Override | ||
public boolean isCancelable() { return true; } | ||
public SpellData getSpellData() { return this.spellData; } | ||
} |
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
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
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
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.