6364656667686970717273
public boolean canPlaceBlockAt(World par1World, int x, int y, int z) { BlockVec3 thisvec = new BlockVec3(x, y, z); for (int i = 0; i < 6; i++) { if (thisvec.blockOnSideHasSolidFace(par1World, i)) { return true; } } return false;
7677787980818283848586
@Override public int onBlockPlaced(World world, int x, int y, int z, int side, float hitX, float hitY, float hitZ, int metaOld) { BlockVec3 thisvec = new BlockVec3(x, y, z); if (thisvec.blockOnSideHasSolidFace(world, side ^ 1)) { return side ^ 1; } return metaOld;
96979899100101102103104105106
{ final int side = par1World.getBlockMetadata(x, y, z); BlockVec3 thisvec = new BlockVec3(x, y, z); if (thisvec.blockOnSideHasSolidFace(par1World, side)) { return; } this.dropBlockAsItem(par1World, x, y, z, 0, 0);