your current location:首页 > news>[BRRP] Better Runtime Resource Pack) Minecraft

[BRRP] Better Runtime Resource Pack) Minecraft

2024-12-15 02:19:09|Myriagame |source:minecraft skins

BRRP (Better Runtime Resource Pack, a better runtime resource package) is a front module that can be used to create game resources during runtime. It is a branch based on the ARRP module.

The resource package is a Minecraft resource file created during runtime to avoid some repeated operations.For modules with a large number of similar blocks and items, using the resource package during runtime can greatly reduce the size of the module file.

For example, the loot table of most blocks can be described as "drop block itself", and a few blocks need to be accurately collected before falling. For step -level blocks, it will be doubled after the dual -step.In the loot table, each square must define a loot table JSON file alone, which is obviously very expensive.For another example, almost every block needs to define the state, block model, and items model. Among them, there may be more than one block model. If you add a loot table and formula (if there are), each square requires at least 5 JSON.Files can achieve complete functions.The resource package during runtime will allow these contents to generate inside the game during runtime, and there is no need to pack it in the module jar file.

The resource package and the conventional resource package during runtime are consistent in functional. The conventional resource package (whether it is a module with a resource package or a manual resource package or a data package) can cover the content of the resource package during runtime, or it can also be withResource packages are implicated when runtime.A very typical example is that the model of the block is defined by the resource package during runtime, and its texture is stored in the module file in a traditional way (because the texture file is not suitable for generating at runtime).

Compared with the traditional resource package, the resource package saves input and output (I/O) during runtime, but it increases the process of serialization of the object. This is a disadvantage of the resource package during runtime.When the resource package is generated, it will be transformed from an object in the game to byte form, usually output into JSON, which is called serialization.When the game reads the resource package, it will resume the content of these bytes to produce objects in the game. This process is called back serialization.In the traditional resource package, all resources have been serialized. The game only needs to be carried out when loading the resource package.The resource package needs to be serialized and then serialized.

Here is the process of reading the traditional resource package and the reading of resource packages in the game during runtime:

Traditional resource package files → (read) byte form → (derivative) In -game object

Resource package code when runtime → ARRP internal objects → (serialized) byte form → (counter serialization) in -game object

In the future version, it will consider directly generating the relevant objects in the game and directly, without serialization and derivativeization.This theory can already be done, but if it is allowed to be used as a resource package, it allows traditional resource packages or data coverage to cover further research.

This module (BRRP) can be a branch of ARRP. Since version 1.0.0, it has been independent from the ARRP module. It will no longer provide ARRP functions, and theoretically coexist with ARRP.

This module is open source code and published under the MPLV2 copyright agreement.

Minecraft images

The goal of MC Encyclopedia (MCMOD.CN) is to provide players with a better environment for MOD learning and research, and accept and cultivate more hardcore players.Provide Minecraft (Minecraft) MOD (module) item data introduction, tutorial strategy and MOD download, and is committed to improving the player's game experience.About the encyclopedia Encyclopedia help development log Donate Encyclopedia to follow the encyclopedia B station = "Fa Fa-Anagle-Right"> Opinions feedback Email © CopyRight Mc Encyclopedia 2013-2024 mcmod.cn |

Minecraft images

Minecraft images

In addition to other statements, MCMOD.CN, all open public editing content uses the BY-NC-SA 3.0 protocol.