forked from WildBamaBoy/minecraft-comes-alive
-
Notifications
You must be signed in to change notification settings - Fork 63
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
1 parent
23ee3c5
commit bb4177b
Showing
50 changed files
with
313 additions
and
425 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
29 changes: 15 additions & 14 deletions
29
common/src/main/java/net/mca/advancement/criterion/CriterionMCA.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 |
---|---|---|
@@ -1,23 +1,24 @@ | ||
package net.mca.advancement.criterion; | ||
|
||
import net.mca.mixin.MixinCriteria; | ||
import net.minecraft.advancement.criterion.Criteria; | ||
import net.minecraft.advancement.criterion.Criterion; | ||
|
||
public interface CriterionMCA { | ||
BabyCriterion BABY_CRITERION = register(new BabyCriterion()); | ||
BabyDroppedCriterion BABY_DROPPED_CRITERION = register(new BabyDroppedCriterion()); | ||
BabySmeltedCriterion BABY_SMELTED_CRITERION = register(new BabySmeltedCriterion()); | ||
BabySirbenSmeltedCriterion BABY_SIRBEN_SMELTED_CRITERION = register(new BabySirbenSmeltedCriterion()); | ||
HeartsCriterion HEARTS_CRITERION = register(new HeartsCriterion()); | ||
GenericEventCriterion GENERIC_EVENT_CRITERION = register(new GenericEventCriterion()); | ||
ChildAgeStateChangeCriterion CHILD_AGE_STATE_CHANGE = register(new ChildAgeStateChangeCriterion()); | ||
FamilyCriterion FAMILY = register(new FamilyCriterion()); | ||
RankCriterion RANK = register(new RankCriterion()); | ||
VillagerFateCriterion FATE = register(new VillagerFateCriterion()); | ||
BabyCriterion BABY = register("baby", new BabyCriterion()); | ||
BabyDroppedCriterion BABY_DROPPED = register("baby_dropped", new BabyDroppedCriterion()); | ||
BabySmeltedCriterion BABY_SMELTED = register("baby_smelted", new BabySmeltedCriterion()); | ||
BabySirbenSmeltedCriterion BABY_SIRBEN_SMELTED = register("baby_sirben_smelted", new BabySirbenSmeltedCriterion()); | ||
HeartsCriterion HEARTS = register("hearts", new HeartsCriterion()); | ||
GenericEventCriterion GENERIC_EVENT = register("generic_event", new GenericEventCriterion()); | ||
ChildAgeStateChangeCriterion CHILD_AGE_STATE_CHANGE = register("child_age_state_change", new ChildAgeStateChangeCriterion()); | ||
FamilyCriterion FAMILY = register("family", new FamilyCriterion()); | ||
RankCriterion RANK = register("rank", new RankCriterion()); | ||
VillagerFateCriterion VILLAGER_FATE = register("villager_fate", new VillagerFateCriterion()); | ||
|
||
static <T extends Criterion<?>> T register(T obj) { | ||
return MixinCriteria.register(obj); | ||
static <T extends Criterion<?>> T register(String id, T obj) { | ||
return Criteria.register("mca:" + id, obj); | ||
} | ||
|
||
static void bootstrap() { } | ||
static void bootstrap() { | ||
} | ||
} |
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.