User Tools

Site Tools


zh_cn:tutorial:registry_types

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
zh_cn:tutorial:registry_types [2021/05/20 11:47] – [实体] solidblockzh_cn:tutorial:registry_types [2023/08/15 14:21] (current) – [世界生成] wjz_p
Line 2: Line 2:
  
 Minecraft拥有多种内容的注册表,比如方块、物品和实体的注册表。以下为原版注册表: Minecraft拥有多种内容的注册表,比如方块、物品和实体的注册表。以下为原版注册表:
 +
 +(注意:对于 1.19.3 以及以上的版本,请将 ''Registry'' 替换为 ''Registries''。)
  
 ===== 一般注册表 ===== ===== 一般注册表 =====
Line 14: Line 16:
     * 包含所有的[[zh_cn:tutorial:items|物品]](包括方块物品)。     * 包含所有的[[zh_cn:tutorial:items|物品]](包括方块物品)。
   * ''%%Registry.BLOCK_ENTITY_TYPE%%''   * ''%%Registry.BLOCK_ENTITY_TYPE%%''
-    * 包含每个[[zh_cn:tutorial:blockentity|方块实体]]的''%%BlockEntityType%%''Block entity types are used to deserialize block entities and store compatible blocks.+    * 包含每个[[zh_cn:tutorial:blockentity|方块实体]]的 ''%%BlockEntityType%%''方块实体类型用来反序列化方块实体并储存兼容的方块。
   * ''%%Registry.STATUS_EFFECT%%''   * ''%%Registry.STATUS_EFFECT%%''
-    * 包含所有的[[https://minecraft-zh.gamepedia.com/状态效果|状态效果]],如隐身和夜视。+    * 包含所有的[[status_effects|状态效果]],如隐身和夜视。
   * ''%%Registry.PARTICLE_TYPE%%''   * ''%%Registry.PARTICLE_TYPE%%''
-    * 包含所有的[[https://minecraft-zh.gamepedia.com/颗粒|粒类型]]。+    * 包含所有的[[particles|粒类型]]。
   * ''%%Registry.FLUID%%''   * ''%%Registry.FLUID%%''
-    * 包含所有的[[tutorial:fluids|流体]]。+    * 包含所有的[[zh_cn:tutorial:fluids|流体]]。
   * ''%%Registry.ENCHANTMENT%%''   * ''%%Registry.ENCHANTMENT%%''
     * 包含所有的附魔。     * 包含所有的附魔。
Line 28: Line 30:
     * 包含所有的维度类型。     * 包含所有的维度类型。
   * ''%%Registry.SCREEN_HANDLER%%''   * ''%%Registry.SCREEN_HANDLER%%''
-    * 包含所有的屏幕处理器 screen handlers)。屏幕处理器用于在服务器和客户端之间同步GUI(用户界面)状态。+    * 包含所有的屏幕处理器screen handlers)。屏幕处理器用于在服务器和客户端之间同步 GUI 状态。
   * ''%%Registry.RECIPE_TYPE%%''   * ''%%Registry.RECIPE_TYPE%%''
-    * 包含所有的[[https://minecraft-zh.gamepedia.com/配方|配方]]类型+    * 包含所有的[[recipe_types_introduction|配方类型]]。
   * ''%%Registry.RECIPE_SERIALIZER%%''   * ''%%Registry.RECIPE_SERIALIZER%%''
-    * Contains all recipe serializers. Recipe serializers are used to load recipes, and there can be many serializers for a single type (such as both shaped and shapeless crafting recipes).+    * 包含所有的配方序列化器。配方序列化器用于加载配方,同一类型可以有多个序列化器(例如有序和无序合成配方)。
   * ''%%Registry.PAINTING_MOTIVE%%''   * ''%%Registry.PAINTING_MOTIVE%%''
-    * Contains all painting motives, or the different types of paintings.+    * 包含所有的画的类型。
   * ''%%Registry.SOUND_EVENT%%''   * ''%%Registry.SOUND_EVENT%%''
-    * 包含所有的[[zh_cn:tutorial:sounds|声音事件]]如''%%entity.item.pickup%%''+    * 包含所有的[[zh_cn:tutorial:sounds|声音事件]]如 ''%%entity.item.pickup%%''
   * ''%%Registry.STAT%%''   * ''%%Registry.STAT%%''
-    * 包含所有不同的统计类型。统计使用通用类''%%<T>%%'',用于获取不同''%%T%%''值的不同数据。 +    * 包含所有不同的统计类型。统计使用型''%%<T>%%'',用于获取不同 ''%%T%%'' 值的不同数据。 
-      * 不依赖于外部内容的统计,如''%%walk_one_cm%%'',使用''%%custom%%''统计类型,它使用注册的''%%Identifier%%''作为''%%T%%''类型。 +      * 不依赖于外部内容的统计,如 ''%%walk_one_cm%%'',使用 ''%%custom%%'' 统计类型,它使用注册的 ''%%Identifier%%'' 作为 ''%%T%%'' 类型。 
-      * 不属于''%%custom%%''统计的统计可能依赖于特定的方块或者物品类型,如''%%Stats.MINED%%''+      * 不属于 ''%%custom%%'' 统计的统计可能依赖于特定的方块或者物品类型,如 ''%%Stats.MINED%%''
   * ''%%Registry.CUSTOM_STAT%%''   * ''%%Registry.CUSTOM_STAT%%''
-    * 包含所有的“自定义统计”,即不依赖于外部内容的统计ID。+    * 包含所有的“自定义统计”,即不依赖于外部内容的统计 ID。
  
 ===== 实体===== ===== 实体=====
  
-绝大多数这些注册表,除了''%%ENTITY_TYPE%%''自身,都与实体AI有关。+绝大多数这些注册表,除了 ''%%ENTITY_TYPE%%'' 自身,都与实体 AI 有关。
  
   * ''%%Registry.ENTITY_TYPE%%''   * ''%%Registry.ENTITY_TYPE%%''
-    * 包含每个[[zh_cn:tutorial:entity-old|实体]]的实体类型(''%%EntityType%%'')。类似于方块实体类型,实体类型用于同步和取消序列化。+    * 包含每个[[zh_cn:tutorial:entity|实体]]的实体类型(''%%EntityType%%'')。类似于方块实体类型,实体类型用于同步和取消序列化。
   * ''%%Registry.SCHEDULE%%''   * ''%%Registry.SCHEDULE%%''
     * 包含实体(通常是村民)的时刻表。时刻表控制实体基于一天内时间的行为。     * 包含实体(通常是村民)的时刻表。时刻表控制实体基于一天内时间的行为。
   * ''%%Registry.ACTIVITY%%''   * ''%%Registry.ACTIVITY%%''
-    * 控制实体(通常是村民)的活动。这些活动,比如''%%play%%''或''%%work%%'',控制实体的行为。+    * 控制实体(通常是村民)的活动。这些活动,比如 ''%%play%%'' 或 ''%%work%%'',控制实体的行为。
   * ''%%Registry.SENSOR_TYPE%%''   * ''%%Registry.SENSOR_TYPE%%''
     * 包含每个实体传感器的类型。传感器允许实体“感受”不同的事物,并将其储存在记忆中。     * 包含每个实体传感器的类型。传感器允许实体“感受”不同的事物,并将其储存在记忆中。
Line 68: Line 70:
 ===== 世界生成 ===== ===== 世界生成 =====
  
-World generation in Minecraft is complex, and there are a lot of different registries for world gen.+Minecraft的世界生成比较复杂,对于世界生成有许多不同的注册表。
  
   * ''%%Registry.BIOME%%''   * ''%%Registry.BIOME%%''
-    * Contains all [[tutorial:biomes|biomes]].+    * 包含所有的[[zh_cn:tutorial:biomes|生物群系]]
   * ''%%Registry.FEATURE%%''   * ''%%Registry.FEATURE%%''
-    * Contains all [[tutorial:features|world generation features]], including structures.+    * 包含所有的[[zh_cn:tutorial:features|地物]],包括结构。
   * ''%%Registry.STRUCTURE_FEATURE%%''   * ''%%Registry.STRUCTURE_FEATURE%%''
-    * Contains all [[tutorial:structures|structure features]].+    * 包含所有的[[zh_cn:tutorial:structures|结构地物]]
   * ''%%Registry.CARVER%%''   * ''%%Registry.CARVER%%''
-    * Contains all carvers. Carvers are used to create caves and ravines.+    * 包含所有的雕刻器。雕刻器用于创建洞穴和峡谷。
   * ''%%Registry.DECORATOR%%''   * ''%%Registry.DECORATOR%%''
-    * Contains all decorators. Decorators are used to place features.+    * 包含所有的装饰器。装饰器用于安放特征。
   * ''%%Registry.BIOME_SOURCE_TYPE%%''   * ''%%Registry.BIOME_SOURCE_TYPE%%''
-    * Contains all biome source types. They determine which biome is placed where during world generation.+    * 包含所有的生物群系源类型,这决定了生成世界时使用哪些生物群系。
   * ''%%Registry.TREE_DECORATOR_TYPE%%''   * ''%%Registry.TREE_DECORATOR_TYPE%%''
-    * Contains all tree decorator types. Tree decorators can add additional blocks, such as beehives or vines, to trees.+    * 包含所有的树木装饰器类型。这些装饰器添加一些附加方块,例如蜂箱、藤蔓。
   * ''%%Registry.FOLIAGE_PLACER_TYPE%%''   * ''%%Registry.FOLIAGE_PLACER_TYPE%%''
-    * Contains all foliage placer types. Foliage placers are used to generate the leaves of trees.+    * 包含所有的树叶放置器类型,用于生成树叶。
   * ''%%Registry.BLOCK_STATE_PROVIDER_TYPE%%''   * ''%%Registry.BLOCK_STATE_PROVIDER_TYPE%%''
-    * Contains all block state provider types. They are used to select a possibly random block state based on a position.+    * 包含所有的方块状态提供器类型,用于基于位置选择可能的随机方块状态。
   * ''%%Registry.BLOCK_PLACER_TYPE%%''   * ''%%Registry.BLOCK_PLACER_TYPE%%''
-    * Contains all block placer types. Block placers are used to place blocks in features like ''%%RandomPatchFeature%%''.+    * 包含所有的方块放置器类型,用于在 ''%%RandomPatchFeature%%'' 之类的地形中放置方块。
   * ''%%Registry.CHUNK_GENERATOR_TYPE%%''   * ''%%Registry.CHUNK_GENERATOR_TYPE%%''
-    * Contains all chunk generator types. Chunk generators define the basic shape of the terrain, such as ''%%surface%%'' for overworld-like, ''%%caves%%'' for nether-like and ''%%floating_islands%%'' for end-like terrain.+    * 包含所有的区块生成器类型。区块生成器决定了地形的基本形状,如 ''%%surface%%'' 生成类似于主世界的地表地形,''%%caves%%'' 用于生成类似于下界的洞穴地形,''%%floating_islands%%'' 用于生成类似于末地的浮岛类型。
   * ''%%Registry.CHUNK_STATUS%%''   * ''%%Registry.CHUNK_STATUS%%''
-    * Contains all chunk status types. They describe the current progress of world generation in a chunk.+    * 包含所有的区块状态类型。区块状态描述了区块中世界生成的当前进展。
   * ''%%Registry.STRUCTURE_PIECE%%''   * ''%%Registry.STRUCTURE_PIECE%%''
-    * Contains all structure piece types. Structure pieces are smaller parts of a structure, such as a single room.+    * 包含所有的结构构件。结构构件是结构的小部分,例如单间房间。
   * ''%%Registry.RULE_TEST%%''   * ''%%Registry.RULE_TEST%%''
-    * Contains all rule test types. They are used to match blocks in structure generation.+    * 包含所有的规则测试类型,用于在世界生成中匹配方块。
   * ''%%Registry.STRUCTURE_PROCESSOR%%''   * ''%%Registry.STRUCTURE_PROCESSOR%%''
-    * Contains all structure processor types. Structure processors modify structures after they have been generated.+    * 包含所有的结构处理器类型。结构处理器会在结构生成后对其进行修改。
   * ''%%Registry.STRUCTURE_POOL_ELEMENT%%''   * ''%%Registry.STRUCTURE_POOL_ELEMENT%%''
-    * Contains all structure pool elements. Structure pool elements are even smaller parts of structures, and they are contained within pool structure pieces. They are used for generating structures that are based on datapacks (such as structures using jigsaws).+    * 包含所有的结构池元素。结构池元素时结构的更小部分,包含在池结构构件中,用于生成基于数据包的结构(例如使用拼图的结构)。
   * ''%%Registry.SURFACE_BUILDER%%''   * ''%%Registry.SURFACE_BUILDER%%''
-    * Contains all surface builders. Surface builders are used to place the surface blocks of a biome, such as grass in many overworld biomes.+    * 包含所有的地表构造器。地表构造器用于放置生物群系的地表,例如许多主世界生物群系的草。
  
  
zh_cn/tutorial/registry_types.1621511276.txt.gz · Last modified: 2021/05/20 11:47 by solidblock