2018-08-02 17:25:46 +00:00
|
|
|
package baritone.bot.utils;
|
|
|
|
|
|
|
|
import net.minecraft.block.Block;
|
|
|
|
import net.minecraft.block.state.IBlockState;
|
|
|
|
import net.minecraft.client.Minecraft;
|
|
|
|
import net.minecraft.util.math.BlockPos;
|
|
|
|
|
|
|
|
public class BlockStateInterface {
|
2018-08-02 18:04:20 +00:00
|
|
|
public static IBlockState get(BlockPos pos) { // wrappers for future chunk caching capability
|
2018-08-02 17:25:46 +00:00
|
|
|
return Minecraft.getMinecraft().world.getBlockState(pos);
|
|
|
|
}
|
|
|
|
|
|
|
|
public static Block getBlock(BlockPos pos) {
|
|
|
|
return get(pos).getBlock();
|
|
|
|
}
|
|
|
|
}
|