-
-
Notifications
You must be signed in to change notification settings - Fork 342
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
115 additions
and
88 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,7 @@ | |
|
||
import org.spongepowered.api.Sponge; | ||
import org.spongepowered.api.advancement.Advancement; | ||
import org.spongepowered.api.advancement.AdvancementTemplate; | ||
import org.spongepowered.api.advancement.criteria.AdvancementCriterion; | ||
import org.spongepowered.api.command.CommandCause; | ||
import org.spongepowered.api.data.persistence.DataView; | ||
|
@@ -204,7 +205,7 @@ interface Builder extends org.spongepowered.api.util.Builder<Selector, Builder> | |
* @param advancement The advancement that players must have. | ||
* @return This builder, for chaining | ||
*/ | ||
Builder addAdvancement(Advancement advancement); | ||
Builder addAdvancement(AdvancementTemplate advancement); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
Faithcaio
Author
Contributor
|
||
|
||
/** | ||
* Adds an {@link Advancement} constraint to this selector, requiring | ||
|
@@ -213,7 +214,7 @@ interface Builder extends org.spongepowered.api.util.Builder<Selector, Builder> | |
* @param advancement The advancement that players must not have. | ||
* @return This builder, for chaining | ||
*/ | ||
Builder addNotAdvancement(Advancement advancement); | ||
Builder addNotAdvancement(AdvancementTemplate advancement); | ||
|
||
/** | ||
* Adds an {@link AdvancementCriterion} constraint to this selector, | ||
|
@@ -224,7 +225,7 @@ interface Builder extends org.spongepowered.api.util.Builder<Selector, Builder> | |
* @param criterion The criterion the player must have | ||
* @return This builder, for chaining | ||
*/ | ||
Builder addAdvancementCriterion(Advancement advancement, AdvancementCriterion criterion); | ||
Builder addAdvancementCriterion(AdvancementTemplate advancement, AdvancementCriterion criterion); | ||
|
||
/** | ||
* Adds an {@link AdvancementCriterion} constraint to this selector, | ||
|
@@ -235,7 +236,7 @@ interface Builder extends org.spongepowered.api.util.Builder<Selector, Builder> | |
* @param criterion The criterion the player must not have | ||
* @return This builder, for chaining | ||
*/ | ||
Builder addNotAdvancementCriterion(Advancement advancement, AdvancementCriterion criterion); | ||
Builder addNotAdvancementCriterion(AdvancementTemplate advancement, AdvancementCriterion criterion); | ||
|
||
/** | ||
* Adds an {@link DataView} as an NBT style constraint. | ||
|
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.
Templates are needed here? Feels...odd.