@@ -0,0 +1,1722 @@
+/*%0A * Copyright  2014 - 2017 %7C Wurst-Imperium %7C All rights reserved.%0A *%0A * This Source Code Form is subject to the terms of the Mozilla Public%0A * License, v. 2.0. If a copy of the MPL was not distributed with this%0A * file, You can obtain one at http://mozilla.org/MPL/2.0/.%0A */%0Apackage net.wurstclient.compatibility;%0A%0Aimport net.minecraft.block.Block;%0Aimport net.minecraft.block.BlockChest;%0Aimport net.minecraft.block.material.Material;%0Aimport net.minecraft.block.state.IBlockState;%0Aimport net.minecraft.util.math.AxisAlignedBB;%0Aimport net.minecraft.util.math.BlockPos;%0A%0Apublic final class WBlock%0A%7B%0A%09private static final AxisAlignedBB CHEST_AABB =%0A%09%09new AxisAlignedBB(0.0625F, 0.0F, 0.0625F, 0.9375F, 0.875F, 0.9375F);%0A%09%0A%09public static IBlockState getState(BlockPos pos)%0A%09%7B%0A%09%09return WMinecraft.getWorld().getBlockState(pos);%0A%09%7D%0A%09%0A%09public static Block getBlock(BlockPos pos)%0A%09%7B%0A%09%09return getState(pos).getBlock();%0A%09%7D%0A%09%0A%09public static int getId(BlockPos pos)%0A%09%7B%0A%09%09return Block.getIdFromBlock(getBlock(pos));%0A%09%7D%0A%09%0A%09public static String getName(Block block)%0A%09%7B%0A%09%09return %22%22 + Block.blockRegistry.getNameForObject(block);%0A%09%7D%0A%09%0A%09public static Material getMaterial(BlockPos pos)%0A%09%7B%0A%09%09return getState(pos).getMaterial();%0A%09%7D%0A%09%0A%09public static AxisAlignedBB getBoundingBox(BlockPos pos)%0A%09%7B%0A%09%09if(getBlock(pos) instanceof BlockChest)%0A%09%09%09return CHEST_AABB.offset(pos);%0A%09%09%0A%09%09return getState(pos).getSelectedBoundingBox(WMinecraft.getWorld(), pos);%0A%09%7D%0A%09%0A%09public static boolean canBeClicked(BlockPos pos)%0A%09%7B%0A%09%09return getBlock(pos).canCollideCheck(getState(pos), false);%0A%09%7D%0A%09%0A%09public static float getHardness(BlockPos pos)%0A%09%7B%0A%09%09return getState(pos).getPlayerRelativeBlockHardness(%0A%09%09%09WMinecraft.getPlayer(), WMinecraft.getWorld(), pos);%0A%09%7D%0A%7D%0A

Add WBlock