tutorial:modding_tips
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
modding:tips [2019/01/22 13:40] – created asie | tutorial:modding_tips [2024/04/15 02:25] (current) – solidblock | ||
---|---|---|---|
Line 6: | Line 6: | ||
* Due to the injection-based approach of Fabric' | * Due to the injection-based approach of Fabric' | ||
- | * Block.Settings -> FabricBlockSettings | + | * Block.Settings -> FabricBlockSettings |
* EntityType.Builder -> FabricEntityTypeBuilder | * EntityType.Builder -> FabricEntityTypeBuilder | ||
+ | * For a built-in resource pack or data pack, please ensure that an " | ||
===== Mixins ===== | ===== Mixins ===== | ||
- | * To modify | + | * To cast a class to an interface it doesn' |
+ | * @Redirect and @ModifyConstant mixins cannot currently be nested (applied by more than one mod in the same area at the same time). This might change later in development - however, for now, alongside @Overwrite, please avoid them if possible | ||
+ | * If you're adding non-private custom fields or methods, prefix them with " | ||
===== Networking ===== | ===== Networking ===== | ||
* Packets always begin execution on the **network thread**, however accesses to most Minecraft things are not thread-safe. In general, if you're not exactly sure what you're doing, you want to parse the packet on the network thread (read all the values out), then use the **task queue** to perform additional operations on the **main server/ | * Packets always begin execution on the **network thread**, however accesses to most Minecraft things are not thread-safe. In general, if you're not exactly sure what you're doing, you want to parse the packet on the network thread (read all the values out), then use the **task queue** to perform additional operations on the **main server/ | ||
+ | |||
+ | ===== Pitfalls ===== | ||
+ | |||
+ | * Avoid using the '' |
tutorial/modding_tips.1548164405.txt.gz · Last modified: 2019/01/22 13:40 by asie