-
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
42873e7
commit b2ec8e0
Showing
129 changed files
with
4,682 additions
and
283 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
org.gradle.jvmargs=-Xmx4G | ||
org.gradle.daemon=false | ||
mod_version=1.1.2 | ||
mod_version=1.1.3 | ||
forge_version=1.19.2-43.2.0 | ||
mc_version=1.19.2 | ||
jei_version=11.4.0.286 | ||
patchouli_version=1.19.2-76 | ||
twilight_forest_version=4.2.1518 | ||
twilight_forest_version=4.2.1518 | ||
jade_id=4800904 | ||
top_id=3965693 | ||
cloth_config_forge=8.3.103 |
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.critereon.AbstractCriterionTriggerInstance; | ||
import net.minecraft.advancements.critereon.DeserializationContext; | ||
import net.minecraft.advancements.critereon.EntityPredicate; | ||
import net.minecraft.advancements.critereon.SimpleCriterionTrigger; | ||
import net.minecraft.resources.ResourceLocation; | ||
import net.minecraft.server.level.ServerPlayer; | ||
|
||
public class GivePatchouliBookConfigTrigger extends SimpleCriterionTrigger<GivePatchouliBookConfigTrigger.Instance> { | ||
public static final ResourceLocation ID = new ResourceLocation(TouhouLittleMaid.MOD_ID, "give_patchouli_book_config"); | ||
|
||
@Override | ||
protected GivePatchouliBookConfigTrigger.Instance createInstance(JsonObject json, EntityPredicate.Composite entityPredicate, DeserializationContext conditionsParser) { | ||
return new GivePatchouliBookConfigTrigger.Instance(entityPredicate); | ||
} | ||
|
||
@Override | ||
public ResourceLocation getId() { | ||
return ID; | ||
} | ||
|
||
|
||
public void trigger(ServerPlayer serverPlayer) { | ||
super.trigger(serverPlayer, instance -> MiscConfig.GIVE_PATCHOULI_BOOK.get()); | ||
} | ||
|
||
public static class Instance extends AbstractCriterionTriggerInstance { | ||
public Instance(EntityPredicate.Composite 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
Oops, something went wrong.