use of me.desht.pneumaticcraft.api.client.pneumaticHelmet.IHackableBlock in project pnc-repressurized by TeamPneumatic.
the class PacketHackingBlockFinish method handleClientSide.
@Override
public void handleClientSide(PacketHackingBlockFinish message, EntityPlayer player) {
IHackableBlock hackableBlock = HackableHandler.getHackableForCoord(player.world, message.pos, player);
if (hackableBlock != null) {
hackableBlock.onHackFinished(player.world, message.pos, player);
PneumaticCraftRepressurized.proxy.getHackTickHandler().trackBlock(new WorldAndCoord(player.world, message.pos), hackableBlock);
CommonHUDHandler.getHandlerForPlayer(player).setHackedBlock(null);
player.playSound(Sounds.HELMET_HACK_FINISH, 1.0F, 1.0F);
}
}
Aggregations