Skip to content

Commit

Permalink
Sync changes from official
Browse files Browse the repository at this point in the history
de4f6dc Update Minecraft Wiki links to new domain after fork (neoforged#12)

Signed-off-by: src_resources <[email protected]>
  • Loading branch information
srcres258 committed Oct 11, 2023
1 parent a3ab511 commit 679610b
Show file tree
Hide file tree
Showing 18 changed files with 32 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,5 @@ Block、Item和其他一些Minecraft类都内置了用于显示其名称的翻

- `createComponentTranslation(CommandSource, String, Object...)`根据接收者创建本地化并格式化的`MutableComponent`。如果接收者是一个原版客户端,那么本地化和格式化就很容易完成。如果没有,本地化和格式化将使用包含`TranslatableContents``Component`惰性地进行。只有当服务端允许原版客户端连接时,这才有用。

[langs]: https://minecraft.fandom.com/wiki/Language#Languages
[langs]: https://minecraft.wiki/w/Language#Languages
[converter]: https://tterrag.com/lang2json/
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ this.add("object.examplemod.example_object", "Example Object");
:::

[lang]: ../../concepts/internationalization.md
[locale]: https://minecraft.fandom.com/wiki/Language#Languages
[locale]: https://minecraft.wiki/w/Language#Languages
[datagen]: ../index.md#data-providers
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ public CompletableFuture<?> run(CachedOutput cache) {
[color]: ../../resources/client/models/tinting.md#blockcoloritemcolor
[overrides]: ../../resources/client/models/itemproperties.md
[blockstateprovider]: #block-state-provider
[blockstate]: https://minecraft.fandom.com/wiki/Tutorials/Models#Block_states
[blockstate]: https://minecraft.wiki/w/Tutorials/Models#Block_states
[blockmodels]: #blockmodelprovider
[itemmodels]: #itemmodelprovider
[properties]: ../../blocks/states.md#implementing-block-states
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ MDK的`build.gradle`中的默认配置添加了用于运行数据生成器的`ru
* [`advancements.AdvancementProvider`][advgen] - 针对[进度];向构造函数传递`AdvancementSubProvider`

[langgen]: ./client/localization.md
[lang]: https://minecraft.fandom.com/wiki/Language
[lang]: https://minecraft.wiki/w/Language
[soundgen]: ./client/sounds.md
[sounds]: https://minecraft.fandom.com/wiki/Sounds.json
[sounds]: https://minecraft.wiki/w/Sounds.json
[modelgen]: ./client/modelproviders.md
[models]: ../resources/client/models/index.md
[itemmodelgen]: ./client/modelproviders.md#itemmodelprovider
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
- **用法**: 就像`Level`中的方法一样,玩家类中的这两个重写似乎是针对在两端同时运行的代码。客户端处理向用户播放音效,而服务端处理其他所有听到音效的人,而不向原始用户重新播放。

[loc]: ../concepts/resources.md#resourcelocation
[wiki]: https://minecraft.fandom.com/wiki/Sounds.json
[wiki]: https://minecraft.wiki/w/Sounds.json
[datagen]: ../datagen/client/sounds.md
[registration]: ../concepts/registries.md#methods-for-registering
[sides]: ../concepts/sides.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public boolean mouseClicked(double x, double y, int button) {
:::

[modbus]: ../concepts/events.md#mod-event-bus
[controls]: https://minecraft.fandom.com/wiki/Options#Controls
[controls]: https://minecraft.wiki/w/Options#Controls
[tk]: ../concepts/internationalization.md#translatablecontents
[keyinput]: https://www.glfw.org/docs/3.3/input_guide.html#input_key
[forgebus]: ../concepts/events.md#creating-an-event-handler
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,5 @@

比例必须指定为表示三维矢量的3个浮点数的数组:`[ x, y, z ]`,如果不存在,则默认为(1, 1, 1)。

[blockstate]: https://minecraft.fandom.com/wiki/Tutorials/Models#Block_states
[blockstate]: https://minecraft.wiki/w/Tutorials/Models#Block_states
[displaytransform]: ../modelloaders/transform.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@

附加阅读:[资源位置][resourcelocation]

[respack]: https://minecraft.fandom.com/wiki/Resource_Pack
[createrespack]: https://minecraft.fandom.com/wiki/Tutorials/Creating_a_resource_pack
[respack]: https://minecraft.wiki/w/Resource_Pack
[createrespack]: https://minecraft.wiki/w/Tutorials/Creating_a_resource_pack
[resourcelocation]: ../../concepts/resources.md#ResourceLocation
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@

纹理和模型一样,包含在资源包中,并被称为`ResourceLocation`。在《我的世界》中,[UV坐标][UV] (0,0)表示**左上角**。UV*总是*从0到16。如果纹理较大或较小,则会缩放坐标以进行拟合。纹理也应该是正方形的,纹理的边长应该是2的幂,否则会破坏mipmapping(例如1x1、2x2、8x8、16x16和128x128是好的。不建议使用5x5和30x30,因为它们不是2的幂。5x10和4x8会完全断裂,因为它们不是正方形的。)。只有当纹理是[动画化的][animated]时,纹理才应该不是正方形。

[models]: https://minecraft.fandom.com/wiki/Tutorials/Models#File_path
[models]: https://minecraft.wiki/w/Tutorials/Models#File_path
[resloc]: ../../../concepts/resources.md#resourcelocation
[statemodel]: https://minecraft.fandom.com/wiki/Tutorials/Models#Block_states
[itemmodels]: https://minecraft.fandom.com/wiki/Tutorials/Models#Item_models
[statemodel]: https://minecraft.wiki/w/Tutorials/Models#Block_states
[itemmodels]: https://minecraft.wiki/w/Tutorials/Models#Item_models
[state]: ../../../blocks/states.md
[uv]: https://en.wikipedia.org/wiki/UV_mapping
[animated]: https://minecraft.fandom.com/wiki/Resource_Pack?so=search#Animation
[animated]: https://minecraft.wiki/w/Resource_Pack?so=search#Animation
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ private void setup(final FMLClientSetupEvent event)
}
```

[format]: https://minecraft.fandom.com/wiki/Tutorials/Models#Item_models
[format]: https://minecraft.wiki/w/Tutorials/Models#Item_models
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ public void registerItemColors(RegisterColorHandlersEvent.Item event){
}
```

[wiki]: https://minecraft.fandom.com/wiki/Tutorials/Models#Block_models
[wiki]: https://minecraft.wiki/w/Tutorials/Models#Block_models
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ public void performExampleAction(ServerPlayer player, ItemStack stack) {
}
```

[datapack]: https://minecraft.fandom.com/wiki/Data_pack
[wiki]: https://minecraft.fandom.com/wiki/Advancement/JSON_format
[datapack]: https://minecraft.wiki/w/Data_pack
[wiki]: https://minecraft.wiki/w/Advancement/JSON_format
[conditional]: ./conditional.md#implementations
[function]: https://minecraft.fandom.com/wiki/Function_(Java_Edition)
[triggers]: https://minecraft.fandom.com/wiki/Advancement/JSON_format#List_of_triggers
[function]: https://minecraft.wiki/w/Function_(Java_Edition)
[triggers]: https://minecraft.wiki/w/Advancement/JSON_format#List_of_triggers
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@

附加阅读:[资源位置][resourcelocation]

[datapack]: https://minecraft.fandom.com/wiki/Data_pack
[createdatapack]: https://minecraft.fandom.com/wiki/Tutorials/Creating_a_data_pack
[datapack]: https://minecraft.wiki/w/Data_pack
[createdatapack]: https://minecraft.wiki/w/Tutorials/Creating_a_data_pack
[resourcelocation]: ../../concepts/resources.md#ResourceLocation
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ Forge添加了一个额外的`LootItemCondition`,用于检查给定的`LootCon
}
```

[datapack]: https://minecraft.fandom.com/wiki/Data_pack
[wiki]: https://minecraft.fandom.com/wiki/Loot_table
[datapack]: https://minecraft.wiki/w/Data_pack
[wiki]: https://minecraft.wiki/w/Loot_table
[event]: ../../concepts/events.md#creating-an-event-handler
[glm]: ./glm.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,6 @@ public Optional<ExampleRecipe> getRecipeFor(Level level, BlockPos pos) {
所有自定义配方,无论输入或输出数据如何,都可以使用`RecipeProvider`创建到用于[数据生成][datagen]`FinishedRecipe`中。

[forge]: ../../../concepts/registries.md#methods-for-registering
[json]: https://minecraft.fandom.com/wiki/Recipe#JSON_format
[json]: https://minecraft.wiki/w/Recipe#JSON_format
[manager]: ./index.md#recipe-manager
[datagen]: ../../../datagen/server/recipes.md#custom-recipe-serializers
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ Forge为配方纲要及其实现提供了一些额外的行为,以更好地控

一些额外的[原料类型][ingredients]被添加,以允许配方具有检查标签数据或将多种原料组合到单个输入检查器中的输入。

[datapack]: https://minecraft.fandom.com/wiki/Data_pack
[wiki]: https://minecraft.fandom.com/wiki/Recipe
[datapack]: https://minecraft.wiki/w/Data_pack
[wiki]: https://minecraft.wiki/w/Recipe
[advancement]: ../advancements.md
[datagen]: ../../../datagen/server/recipes.md
[cap]: ../../../datastorage/capabilities.md
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ public IIngredientSerializer<? extends Ingredient> getSerializer() {
如果使用`FMLCommonSetupEvent`注册原料序列化器,则必须通过`FMLCommonSetupEvent#enqueueWork`将其排入同步工作队列,因为`CraftingHelper#register`不是线程安全的。
:::

[recipes]: https://minecraft.fandom.com/wiki/Recipe#List_of_recipe_types
[recipes]: https://minecraft.wiki/w/Recipe#List_of_recipe_types
[nbt]: #strictnbtingredient
[serializer]: #iingredientserializer
[compound]: #compoundingredient
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ boolean isInVillagerTypeGroup = BuiltInRegistries.VILLAGER_TYPE.getHolder(villag
原版直接支持标签。有关用法的详细信息,请参阅[配方][recipes][进度][advancements]的原版wiki页面。

[datapack]: ./index.md
[tags]: https://minecraft.fandom.com/wiki/Tag#JSON_format
[taglist]: https://minecraft.fandom.com/wiki/Tag#List_of_tags
[tags]: https://minecraft.wiki/w/Tag#JSON_format
[taglist]: https://minecraft.wiki/w/Tag#List_of_tags
[forgetags]: https://github.com/MinecraftForge/MinecraftForge/tree/1.19.x/src/generated/resources/data/forge/tags
[recipes]: https://minecraft.fandom.com/wiki/Recipe#JSON_format
[advancements]: https://minecraft.fandom.com/wiki/Advancement
[recipes]: https://minecraft.wiki/w/Recipe#JSON_format
[advancements]: https://minecraft.wiki/w/Advancement

0 comments on commit 679610b

Please sign in to comment.