189190191192193194195
if (world.isValidBlockType(typeId)) { return new BaseBlock(typeId, -1); } throw new NotABlockException(typeId); }
366367368369370371372373374
@Override public BaseBlock getBlockInHand() throws WorldEditException { final int typeId = getItemInHand(); if (!getWorld().isValidBlockType(typeId)) { throw new NotABlockException(typeId); } return new BaseBlock(typeId); }