-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
完成 1.20 #1b5e2463f97e22c2eae63241c9a3abbb85a658c8 的更新内容
- Loading branch information
1 parent
896550c
commit ca8b276
Showing
144 changed files
with
5,077 additions
and
677 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
36 changes: 36 additions & 0 deletions
36
...com/github/tartaricacid/touhoulittlemaid/advancements/GivePatchouliBookConfigTrigger.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,36 @@ | ||
package com.github.tartaricacid.touhoulittlemaid.advancements; | ||
|
||
import com.github.tartaricacid.touhoulittlemaid.TouhouLittleMaid; | ||
import com.github.tartaricacid.touhoulittlemaid.config.subconfig.MiscConfig; | ||
import com.google.gson.JsonObject; | ||
import net.minecraft.advancements.criterion.AbstractCriterionTrigger; | ||
import net.minecraft.advancements.criterion.CriterionInstance; | ||
import net.minecraft.advancements.criterion.EntityPredicate; | ||
import net.minecraft.entity.player.ServerPlayerEntity; | ||
import net.minecraft.loot.ConditionArrayParser; | ||
import net.minecraft.util.ResourceLocation; | ||
|
||
public class GivePatchouliBookConfigTrigger extends AbstractCriterionTrigger<GivePatchouliBookConfigTrigger.Instance> { | ||
public static final ResourceLocation ID = new ResourceLocation(TouhouLittleMaid.MOD_ID, "give_patchouli_book_config"); | ||
|
||
@Override | ||
protected Instance createInstance(JsonObject json, EntityPredicate.AndPredicate entityPredicate, ConditionArrayParser conditionsParser) { | ||
return new Instance(entityPredicate); | ||
} | ||
|
||
@Override | ||
public ResourceLocation getId() { | ||
return ID; | ||
} | ||
|
||
|
||
public void trigger(ServerPlayerEntity serverPlayer) { | ||
super.trigger(serverPlayer, instance -> MiscConfig.GIVE_PATCHOULI_BOOK.get()); | ||
} | ||
|
||
public static class Instance extends CriterionInstance { | ||
public Instance(EntityPredicate.AndPredicate player) { | ||
super(ID, player); | ||
} | ||
} | ||
} |
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.