BlockMigrationExtraInfo
Package: com.hypixel.hytale.server.core.modules.entity
public class BlockMigrationExtraInfo extends ExtraInfoCarries block migration context during codec deserialization. Extends ExtraInfo (which provides a version number) with a string-to-string remapping function that translates old block type identifiers to their current equivalents. Used during data migration when loading entities that reference block types from older save formats.
Constructor
Section titled “Constructor”public BlockMigrationExtraInfo(int version, Function<String, String> blockMigration)Constructs a migration info with the specified data version and block identifier remapping function.
Methods
Section titled “Methods”public Function<String, String> getBlockMigration()Returns the block identifier migration function. Given an old block type key, returns the corresponding current key.
Related Types
Section titled “Related Types”ExtraInfo— base class providing the version field- EntityModule — the module that manages entity serialization/deserialization
- BlockEntitySystems — systems that process block entities which may require migration
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.