Slot slot = containerbeacon.getSlot(0);
if (slot.getHasStack())
{
slot.decrStackSize(1);
TileEntityBeacon tileentitybeacon = containerbeacon.func_148327_e();
tileentitybeacon.setPrimaryEffect(i);
tileentitybeacon.setSecondaryEffect(j);
tileentitybeacon.markDirty();
}
}