-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from Master-Bw3/trees
- Loading branch information
Showing
19 changed files
with
709 additions
and
37 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
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
20 changes: 20 additions & 0 deletions
20
src/main/java/dev/enjarai/trickster/spell/tricks/blunder/AddressNotInTreeBlunder.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,20 @@ | ||
package dev.enjarai.trickster.spell.tricks.blunder; | ||
|
||
import dev.enjarai.trickster.spell.tricks.Trick; | ||
import net.minecraft.text.MutableText; | ||
|
||
import java.util.List; | ||
|
||
public class AddressNotInTreeBlunder extends TrickBlunderException { | ||
public final List<Integer> address; | ||
|
||
public AddressNotInTreeBlunder(Trick source, List<Integer> index) { | ||
super(source); | ||
this.address = index; | ||
} | ||
|
||
@Override | ||
public MutableText createMessage() { | ||
return super.createMessage().append("Spell does not contain a circle at this address: ").append(formatAddress(address)); | ||
} | ||
} |
Oops, something went wrong.