public boolean replace(boolean shouldDrop)
{
try
{
ItemFrame f = getWorld().spawn(location.getBlock().getRelative(hanging.getAttachedFace()).getLocation(), ItemFrame.class);
f.teleport(location);
f.setItem(((ItemFrame) hanging).getItem());
f.setRotation(((ItemFrame) hanging).getRotation());
f.setFacingDirection(hanging.getFacing(), true);
} catch (IllegalArgumentException e)
{