BlockFactorization.java 文件源码

java
阅读 17 收藏 0 点赞 0 评论 0

项目:Factorization 作者:
@Override
public boolean removedByPlayer(World world, BlockPos pos, EntityPlayer player, boolean willHarvest) {
    Coord here = new Coord(world, pos);
    TileEntityCommon tec = here.getTE(TileEntityCommon.class);
    if (tec == null) {
        if (!world.isRemote) {
            new Notice(here, "There was no TileEntity!").send(player);
        }
        return world.setBlockToAir(pos);
    }
    boolean ret = tec.removedByPlayer(player, willHarvest);
    if (!world.isRemote && !ret) {
        FMLProxyPacket description = tec.getDescriptionPacket();
        Core.network.broadcastPacket(player, here, description);
        here.sendRedraw();
    }
    return ret;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号