Skip to content

BlockMigrationExtraInfo

Package: com.hypixel.hytale.server.core.modules.entity

public class BlockMigrationExtraInfo extends ExtraInfo

Carries 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.

public BlockMigrationExtraInfo(int version, Function<String, String> blockMigration)

Constructs a migration info with the specified data version and block identifier remapping function.

public Function<String, String> getBlockMigration()

Returns the block identifier migration function. Given an old block type key, returns the corresponding current key.

  • 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.