public static < T > void registerBlockData ( String identifier , Function < ByteBuf , T > fromBytes , Function < T , ByteBuf > toBytes ) { instance . handlerInfos . put ( identifier , new HandlerInfo <> ( identifier , fromBytes , toBytes ) ) ; }
Registers a custom block data with the specified identifier .