Download ChunkAPI — Minecraft Mods — MetaMods

ChunkAPI

Active

Downloads

0

Last update

4 months ago

Versions

1.7.10
Client and server
Forge
Libraries

ChunkAPI

ChunkAPI is a specialized mod that provides a convenient toolkit for adding custom data to Minecraft chunks. You no longer need to spend time writing complex network packets, handling events, and creating loading hooks - all of this is already implemented in the API.

Main Features

The library allows developers to extend chunk functionality without modifying the game's original classes. You get ready-made solutions for data serialization and deserialization for both network interaction and NBT format.

Key API Components

ChunkDataManager - the central class for managing registrations. To implement specific functionality, the following interfaces are used:

  • PacketDataManager - data synchronization between server and client
  • ChunkNBTDataManager - saving and loading data from chunk NBT
  • SectionNBTDataManager - working with data at the individual block level (16x16x16 block sections)

Registration Process

All registrations are performed through ChunkDataRegistry during the initialization phase. To disable managers, the disableDataManager method is used during the post-initialization phase.

Technical Features

The mod modifies standard S21PacketChunkData and S26PacketMapChunkBulk packets, adding support for custom data. The data transfer format includes information about chunk position, block storage masks, and compressed data with managers.

Dependencies

ChunkAPI requires:

  • FalsePatternLib
  • UniMixins
Project members
FalsePattern

FalsePattern

Developer

Created: 31 Mar 2023

ID: 5882