Search in sources :

Example 1 with MiningRecordsMessage

use of cavern.network.client.MiningRecordsMessage in project Cavern2 by kegare.

the class MinerStats method adjustData.

public static void adjustData(EntityPlayerMP player) {
    IMinerStats stats = MinerStats.get(player, true);
    if (stats != null) {
        stats.adjustData();
        CaveNetworkRegistry.sendTo(new MiningRecordsMessage(stats), player);
    }
}
Also used : MiningRecordsMessage(cavern.network.client.MiningRecordsMessage) IMinerStats(cavern.api.IMinerStats)

Aggregations

IMinerStats (cavern.api.IMinerStats)1 MiningRecordsMessage (cavern.network.client.MiningRecordsMessage)1